Sync workers run every 5min, respect user's interval setting
All sync workers (Preseem, Gaiia, NetBox) now fire every 5 minutes via Oban cron. Each worker's should_sync? check compares elapsed time against the user's sync_interval_minutes, so the actual sync frequency matches what the user configured.
This commit is contained in:
parent
e954c7930a
commit
66076d70ae
1 changed files with 3 additions and 3 deletions
|
|
@ -197,13 +197,13 @@ if config_env() == :prod do
|
|||
# Delete stale violation records daily at 2 AM
|
||||
{"0 2 * * *", Towerops.Workers.StaleViolationCleanupWorker},
|
||||
# Sync Preseem data every 10 minutes
|
||||
{"*/10 * * * *", Towerops.Workers.PreseemSyncWorker},
|
||||
{"*/5 * * * *", Towerops.Workers.PreseemSyncWorker},
|
||||
# Compute Preseem baselines and fleet profiles nightly at 2:30 AM
|
||||
{"30 2 * * *", Towerops.Workers.PreseemBaselineWorker},
|
||||
# Sync Gaiia data every 15 minutes
|
||||
{"*/15 * * * *", Towerops.Workers.GaiiaSyncWorker},
|
||||
{"*/5 * * * *", Towerops.Workers.GaiiaSyncWorker},
|
||||
# Sync NetBox data every 30 minutes
|
||||
{"*/30 * * * *", Towerops.Workers.NetBoxSyncWorker},
|
||||
{"*/5 * * * *", Towerops.Workers.NetBoxSyncWorker},
|
||||
# Device health insights nightly at 3:30 AM
|
||||
{"30 3 * * *", Towerops.Workers.DeviceHealthInsightWorker},
|
||||
# System insights (agent offline detection) every 5 minutes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue