pub struct ScheduledJob {Show 16 fields
pub id: String,
pub harness: String,
pub scope: JobScope,
pub profile: Option<String>,
pub session_id: Option<String>,
pub schedule: JobSchedule,
pub payload: JobPayload,
pub session_target: Option<String>,
pub deliver: JobDeliver,
pub enabled: bool,
pub state: String,
pub next_run_at: Option<String>,
pub last_run_at: Option<String>,
pub last_status: Option<String>,
pub created_at: Option<String>,
pub recurring: bool,
}Expand description
One harness’s scheduled job, projected onto the uniform Domain 11 row.
Fields§
§id: StringHarness-native job id. For a Claude Code wakeup — which the harness
never names — this is the ScheduleWakeup tool-use id.
harness: StringOwning harness.
scope: JobScopesession for Claude Code, install for Hermes and OpenClaw.
profile: Option<String>Hermes profile name / OpenClaw agent id, when the job belongs to one.
session_id: Option<String>Claude Code session this job is runtime state of. None for the
install-scoped harnesses.
schedule: JobScheduleWhen the job fires.
payload: JobPayloadWhat fires.
session_target: Option<String>OpenClaw’s sessionTarget (main | isolated | current |
session:<id>). None for Hermes (whose fires always open their own
platform="cron" session) and for Claude Code.
deliver: JobDeliverWhere the run’s output goes.
enabled: boolWhether the scheduler will fire this job.
state: StringHarness-facing state word (active, paused, pending).
next_run_at: Option<String>Next fire, when the store records one.
last_run_at: Option<String>Last fire, when the store records one.
last_status: Option<String>Outcome of the last fire, when the store records one.
created_at: Option<String>Creation timestamp, when the store records one.
recurring: boolWhether the job repeats.
Implementations§
Source§impl ScheduledJob
impl ScheduledJob
Sourcepub fn from_job(harness: &str, profile: Option<String>, job: &Job) -> Self
pub fn from_job(harness: &str, profile: Option<String>, job: &Job) -> Self
The observed row of a typed orchestration [Job] (docs/ONTOLOGY.md §2.7):
jobs list projects the record the orchestration codec decoded, so the
observed view and the orchestration never disagree about a job. OpenClaw’s
delivery object, payload object and session target ride as residue
and are shown as the store spells them.
Trait Implementations§
Source§impl Clone for ScheduledJob
impl Clone for ScheduledJob
Source§fn clone(&self) -> ScheduledJob
fn clone(&self) -> ScheduledJob
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more