MCPcopy
hub / github.com/builderz-labs/mission-control / OpenClawCronJob

Interface OpenClawCronJob

src/app/api/cron/route.ts:29–62  ·  view source on GitHub ↗

* OpenClaw cron jobs live in ~/.openclaw/cron/jobs.json * Format: { version: 1, jobs: [ { id, agentId, name, enabled, schedule: { kind, expr, tz }, payload, delivery, state } ] }

Source from the content-addressed store, hash-verified

27 * Format: { version: 1, jobs: [ { id, agentId, name, enabled, schedule: { kind, expr, tz }, payload, delivery, state } ] }
28 */
29interface OpenClawCronJob {
30 id: string
31 agentId: string
32 name: string
33 enabled: boolean
34 createdAtMs?: number
35 updatedAtMs?: number
36 schedule: {
37 kind: string
38 expr: string
39 tz?: string
40 }
41 sessionTarget?: string
42 wakeMode?: string
43 payload: {
44 kind: string
45 message?: string
46 model?: string
47 thinking?: string
48 timeoutSeconds?: number
49 }
50 delivery?: {
51 mode: string
52 channel?: string
53 to?: string
54 }
55 state?: {
56 nextRunAtMs?: number
57 lastRunAtMs?: number
58 lastStatus?: string
59 lastDurationMs?: number
60 lastError?: string
61 }
62}
63
64interface OpenClawCronFile {
65 version: number

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected