⚠ INTERNAL — Operator UX mock · Design preview of V2 development path · demo-wired ≠ production-live · back to dev guide
Polygon · pUSD 10
📓 Developer Guide 📋 Reason Codes 📈 Shadow Mode
JD John Doe · Admin

Cron Runner

gov.cron-runner
Governance & Ops live General live frozen

CronRunner maintains the authoritative cron schedule for the entire Polytraders system.

What it does

CronRunner maintains the authoritative cron schedule for the entire Polytraders system. It reads a declarative cron manifest (cron_expression per task, UTC), fires each task at the correct wall-clock moment, serialises concurrent firings into an ordered queue, and emits an OperationsReport heartbeat after each dispatch. CronRunner never executes strategy logic or touches the CLOB directly; it is purely a scheduling and dispatch service. Internal-only — no API surface beyond the internal bus.

Pipeline placement

runs after: System startup Cron Runner runs before: Every scheduled bot task — CronRunner fires the trigger

Applies to: All cron-scheduled tasks across all 97 production bots

Why it matters

If this failsConsequence
Cron task not fired on scheduleDownstream bots that rely on scheduled triggers (e.g. daily P&L reconciliation, pre-event quoting cycles) silently miss their window. Delayed reconciliation compounds drift.
Two instances of CronRunner fire the same task simultaneouslyDuplicate fills or double-counted reconciliation records corrupt ledgers and inflate reported P&L.
CronRunner crashes and does not recoverAll scheduled tasks across all 97 bots stop firing. The system drifts into an uncontrolled state without time-based governance.
Missed quiet-hours suppressionStrategies fire during configured quiet hours (e.g. market-open volatility windows), creating unintended exposure.

Inputs

Polymarket inputs

InputSourceRequiredUse
Market schedule metadata (event start times)internaloptionalAlign pre-event quoting cycles to Polymarket event start times when calendar feeds are configured.

Internal inputs

InputSourceRequiredUse
Cron manifest — list of tasks with cron_expression, enabled_strategies, quiet_hour windowsConfig storerequiredPrimary schedule definition. Each entry maps a cron expression to one or more strategy or governance task IDs.
KillSwitch active flagKillSwitchoptionalWhen KillSwitch is active, suppress all non-critical scheduled tasks. Health and governance tasks continue.

Authority

What this bot is permitted to do

Explain

State

Readiness

General live

Status

live

Class

Governance Service

Default mode

general_live

Developer owner

Polytraders core — Governance pod

Capital impact

Indirect

Reason codes emitted

CodeSeverityMeaningAction
CRON_RUNNER_TASK_DISPATCHEDINFOA cron task fired on schedule and was dispatched to all configured targets.No action — operational heartbeat.
CRON_RUNNER_INVALID_EXPRESSIONHARD_REJECTA cron expression in the manifest failed to parse.Reject the config entry at load time; alert on-call.
CRON_RUNNER_DUPLICATE_FIREWARNA second CronRunner instance attempted to dispatch the same task at the same scheduled time; distributed lock was already held.Skip dispatch; log warning.
CRON_RUNNER_QUIET_HOURS_SKIPINFOA task with disable_during_quiet_hours=true was suppressed because the current UTC time falls within a configured quiet window.No action — expected behaviour.
CRON_RUNNER_NO_TARGETSWARNA task entry has an empty enabled_strategies list; there is nothing to dispatch.Log warning; skip dispatch.
KILL_SWITCH_ACTIVEWARNKillSwitch is active; trading-class scheduled tasks are suppressed.Suppress trading tasks; continue governance and health tasks.
CRON_RUNNER_BUS_PUBLISH_FAILEDWARNInternal bus publish for a task trigger failed after retries.Log error; emit alert; retry on next tick.
CRON_RUNNER_MANIFEST_RELOAD_OKINFOCron manifest reloaded successfully after a config change event.No action.

Used by

Reverse index — strategies that currently reference gov.cron-runner. If you change this bot's authority or reason codes, these strategies must re-pass shadow.

StrategyStateActivity
US Elections — sentiment fadedemo-wiredlast triggered 18m ago
BTC weekly — close-aware quotesdemo-wiredlast triggered 25m ago
Fed Rates — surprise driftfrozenlast triggered 32m ago

Showing 3 of 3 · demo-wired ≠ production-live

Why this matters

Governance & Ops bots does NOT propose, approve, or block trades; only observes and reports. Understanding the authority boundary prevents misuse and makes promotion-gate reviews faster and more reliable. View raw spec JSON →
Polytraders Operator UX Mock · INTERNAL · demo-wired ≠ production-live · the plan · reason codes · shadow-mode pipeline
⚙ Page Configuration
Current page settings
Loading configuration…