Expand description
Background workers for periodic tasks
Modules§
- fly_
spend_ alert - Background worker that flags orgs whose estimated Fly.io compute spend on hosted-mock deployments exceeds 2× their plan price for the current billing period (#450 acceptance criterion 3).
- incident_
dispatcher - Notification-channel dispatcher (cloud-enablement task #3 / Phase 2).
- osv_
sync - Background worker that refreshes the
osv_vulnerabilitiescache. - plugin_
scanner - Background worker that drains
plugin_security_scansrows in the"pending"state, re-downloads the published WASM artifact, runs a set of integrity + static-analysis checks against it, and persists the result. - runtime_
logs_ retention - Background worker that prunes
runtime_request_logsby plan tier. - runtime_
observability_ retention - Background worker that prunes
runtime_capturesandruntime_tracesby plan tier. - saml_
cleanup - Background worker for cleaning up expired SAML assertion IDs
- snapshot_
retention - Snapshot retention worker (cloud-enablement task #10 / Phase 2).
- test_
schedule_ runner - Cron-driven test_run trigger (cloud-enablement task #4 / Phase 3).
- token_
rotation_ reminders - Background worker that emails reminders for API tokens older than the rotation threshold.
- usage_
threshold_ checker - Background worker that scans every org’s current-month usage against its
effective limits (plan + custom quota) and inserts a
usage_alertsrow the first time a 75% or 90% band is crossed. Inserts are idempotent on the unique index, so the worker is safe to re-run on any cadence.