<?php

return [
    [
        'id' => 'backups.create_backup',
        'legacy_name' => 'backup',
        'name' => 'Enqueue backup',
        'description' => 'Queues the scheduled production recovery backup through the configured backup store.',
        'module' => 'backups',
        'handler' => 'backup',
        'schedule' => ['type' => 'interval', 'seconds' => 3600],
        'timeout_seconds' => 120,
        'estimated_duration_ms' => 5000,
        'priority' => 115,
    ],
    [
        'id' => 'backups.process_jobs',
        'legacy_name' => null,
        'name' => 'Process backup jobs',
        'description' => 'Processes queued backup create, verify, restore, and prune jobs.',
        'module' => 'backups',
        'handler' => 'processBackupJobs',
        'schedule' => ['type' => 'interval', 'seconds' => 60],
        'timeout_seconds' => 3600,
        'estimated_duration_ms' => 60000,
        'priority' => 116,
    ],
    [
        'id' => 'backups.prune_retention',
        'legacy_name' => null,
        'name' => 'Prune backup retention',
        'description' => 'Queues tiered retention cleanup for old backup artifacts.',
        'module' => 'backups',
        'handler' => 'pruneBackupRetention',
        'schedule' => ['type' => 'interval', 'seconds' => 86400],
        'timeout_seconds' => 1800,
        'estimated_duration_ms' => 30000,
        'priority' => 117,
    ],
];
