Skip to content

Maintenance Jobs ​

Background jobs registered in apps/api/services/maintenance/ and executed by the API on its maintenance tick; the scheduler service polls the tick endpoint on the configured interval. Live state is available under Settings → Maintenance in the UI.

Intervals below are the defaults; each is configurable through its HEGEMONY_MAINTENANCE_* environment variable (see the environment variable reference), and an interval of 0 disables the job (negative values are rejected by settings validation). Every job run takes a lease of 600 s (default) so exactly one instance runs at a time.

JobDefault intervalWhat it does
run_status_sync300 sReconciles stale non-terminal run rows with Temporal workflow state.
approval_timeouts300 sExpires pending approval requests whose configured timeout elapsed.
stale_monitors300 sStops monitor rows whose parent run is already terminal.
run_event_pruning0 sDeletes old run events for terminal runs after the retention window.
platform_sync_export300 sRuns scheduled platform sync export for due BACKUP/BIDIRECTIONAL profiles.
platform_sync_drift_plan900 sRuns scheduled platform sync drift planning for due MIRROR/BIDIRECTIONAL profiles.
platform_sync_auto_apply0 sApplies latest eligible non-destructive scheduler plans for auto-apply profiles.
inventory_provider_sync60 sRefreshes external inventory providers whose per-provider sync interval has elapsed, after releasing sync claims whose lease expired.
file_repository_backfill3600 sEnsures every active organization has its internal file repository provisioned and the bundled object store has its buckets.
sandbox_image_pruning21600 sReclaims dangling images and build cache on the container sandbox daemon.
audit_log_retention86400 sDeletes audit log entries older than HEGEMONY_AUDIT_RETENTION_DAYS in bounded batches; no-op while unset.
inventory_sync_history_retention86400 sDeletes inventory sync history rows older than HEGEMONY_INVENTORY_SYNC_HISTORY_RETENTION_DAYS in bounded batches, keeping each provider's newest runs and any running row.

Released as open source under the AGPL-3.0-or-later license. Development is sponsored by Rexonix s.r.o.. Contact — [email protected].