Skip to main content

Module jobs

Module jobs 

Source
Expand description

The Warden Jobs tab’s websocket RPCs (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §3.3):

  • jobs.list: every job (cron jobs, Drone graphs that have run, and approved cloud jobs) with its state, next run, recent runs and spend, the cloud events dropped since start-up, and Pause all.
  • jobs.runs: one job’s runs, newest first, paged by before.
  • jobs.act: run_now, pause, resume, delete on a cron job, and the operator’s pause_all / resume_all.

The per-job actions go through the Schedule routes’ own handlers (server::cron), so the caller check (#5392) and the scheduler calls are the same whichever way a job is changed. A connection registered as an agent acts as that agent there; Pause all and Resume all refuse it.

Structs§

CapDefaults
Settings’ caps (jobs:cap:*): what a job without figures of its own gets (§5.3). The editor shows them beside the job’s own.
CloudJobView
An approved cloud job (§4.3), as the tab’s cloud group shows it. Its runs are the reporter’s signed events and the watchdog’s misses; nothing here starts it.
DroppedEvents
Cloud events refused since this AgentMux started, by why (“unknown job”, “bad signature”): never shown as runs.
JobRunRow
A run as the tab shows it: the ledger row, and whether it failed (§3.4).
JobView
One job in the tab’s list (§3.3).
JobsActRequest
JobsActResult
JobsListResult
JobsRunsRequest
JobsRunsResult
Ledgered 🔒
What the list needs from the ledger for one job.

Constants§

DAY_MS 🔒
RECENT 🔒
Runs a row’s strip shows (§3.3, “Recent”).
RUNS_DEFAULT 🔒
RUNS_MAX 🔒
The most runs one jobs.runs returns, and its default.

Functions§

act 🔒
answered 🔒
A Schedule route’s answer as the RPC’s: the route’s error when it refused.
block_of 🔒
The pane of the registered agent with this UID, else this name.
caller_of 🔒
Who is asking: the operator’s own window (None), which needs the host’s proof, or the agent this connection registered as, by UID. An agent connection whose UID can’t be found is refused: it can’t be told apart from another agent.
cloud_view 🔒
An approved cloud template as a job. The owner is the agent the manifest names, by uid or by name (§4.3), found among the agents here.
cron_view 🔒
drone_view 🔒
ledger 🔒
ledgered 🔒
list 🔒
local_midnight_ms 🔒
Local midnight today, ms epoch: a day is the operator’s (§10, 7), the same day the spending caps count.
register
runs 🔒
sort_jobs 🔒
Local jobs sorted by next run (none last), then by name (§3.3).