Skip to content

Cron Schedule & Tick Times

FactionOps runs five scheduled jobs in the Cloudflare Worker:

ScheduleNameWhat It Runs
*/1 * * * *1-minute tickEnergy snapshots, OC Watcher, war/chain broadcasts, retaliation alerts, balance sync, vault verify, banking expiry sweep, wartimeRole sync, premium payment collector
*/15 * * * *15-minute tickOC collector, OC role automation, OC alert triggers
0 * * * *Hourly tickGym contributor stats collection, revive skill collection
5 0 * * *Nightly (00:05 UTC)Daily aggregator → cleanup → rollup → contributor daily collection
0 3 * * SUNWeekly (03:00 UTC Sunday)Weekly energy aggregation

1-Minute Tick Detail

The 1-minute tick runs all real-time collectors sequentially:

StepFeature
Energy snapshotsPer-member energy bars (members who have supplied a personal API key)
Premium payment collectorReads Roksonic's log for Xanax sends; credits factions
War/chain broadcastsDetects new wars, war ends, and chain milestones; posts to Discord
Retaliation alertsDetects enemy hospitalisations during wars
Vault verifyMatches pending withdrawal requests to vault log entries
Banking expiry sweepAuto-cancels expired withdrawal requests
Balance syncSyncs member vault balances from the faction donations endpoint
Wartime role syncAssigns/strips the war-participants Discord role based on poll votes
Verification reconcileRe-syncs Discord roles and nicknames for all linked members. Runs on every 1-minute tick but is 24h-throttled per faction; each faction's reconcile only executes when minute === 7.

15-Minute Tick Detail

StepFeature
OC collectorFetches active OC crimes, enriches slots with item requirements, stores ready_at/CPR/members
OC role automationSyncs difficulty roles (1–10) to current OC assignments; posts bench channel
OC alert triggersFires CPR, availability, and missing-item alerts

Data Retention Windows

DataHot WindowRollupDelete
Energy snapshots (raw)7 daysOne row/member/day (is_rollup=1)After 30 days
Contributor stats (hourly)7 daysLast row per dayAfter 30 days
Contributor stats (daily)30 daysAfter 30 days
API logs2 daysAfter 2 days
Member attacks30 daysAfter 30 days
Discord sent dedup7 daysAfter 7 days
Chain hit queue7 daysAfter 7 days

The daily_energy_usage aggregates table is permanent and is not pruned.

FactionOps is not affiliated with Torn or Torn Ltd.