Docs · Install, register and place runs

tempergraph schedule

Schedule a workflow once or on a recurrence.

Usage#

usage
tempergraph schedule [-h] {parse,add,list,show,history,edit,pause,resume,skip,remove,runs,fire,trigger,loop,tick,export} ...

schedule parse#

the echo of a timing, or its question or refusal; writes nothing

usage
tempergraph schedule parse [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--json] [phrase]
ArgumentWhat it is
<phrase>a phrase (or use --when or an exact format)optional
OptionWhat it does
--when WHENa phrase such as 'every weekday at 8:00'
--at ATISO 8601 local, or with an offset or Z: once
--rrule RRULEan RFC 5545 RECUR of the stored subset
--every EVERYan ISO 8601 duration of at least PT15M
--cron CRONfive fields, read in the schedule's zone
--tz TZan IANA zone name
--starts STARTSthe first date the schedule may fire
--until UNTILthe last date the schedule may fire
--count COUNTstop after this many fires
--choose CHOOSEthe reading of an ambiguous phrase
--jsonprint the echo as JSON

schedule add#

schedule a workflow

usage
tempergraph schedule add [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--workspace {auto,worktree,in_place} | --worktree | --in-place] [--budget PERIOD:USD] [--catch-up {latest,none,all}] [--overlap {skip,queue,parallel}] [--max-live MAX_LIVE] [--pause-after-failures PAUSE_AFTER_FAILURES] [--name NAME] [--input K=V] [--orchestration FILE] [--arg K=V] [--program [PROGRAM]] [--check] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [workflow] [request ...]
ArgumentWhat it is
<workflow>the workflow to runoptional
<request>…the request each run is givenoptional
OptionWhat it does
--when WHENa phrase such as 'every weekday at 8:00'
--at ATISO 8601 local, or with an offset or Z: once
--rrule RRULEan RFC 5545 RECUR of the stored subset
--every EVERYan ISO 8601 duration of at least PT15M
--cron CRONfive fields, read in the schedule's zone
--tz TZan IANA zone name
--starts STARTSthe first date the schedule may fire
--until UNTILthe last date the schedule may fire
--count COUNTstop after this many fires
--choose CHOOSEthe reading of an ambiguous phrase
--executor EXECUTORthe executor of every step (sets steps.executor)
--judge-executor JUDGE_EXECUTORthe executor of every judge (sets judges.executor)
--model MODELthe model of every step, as an alias such as sonnet or opus (sets steps.model)
--judge-model JUDGE_MODELthe model of every judge, as an alias (sets judges.model)
--timeout TIMEOUTseconds a step session may run before it is stopped (sets steps.timeout_s)
--judge-timeout JUDGE_TIMEOUTseconds a judge session may run before it is stopped (sets judges.timeout_s)
--idle IDLEseconds a step session may stay silent before it is stopped (sets steps.idle_s)
--run-cost-cap RUN_COST_CAPthe most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)
--daily-cap DAILY_CAPthe self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)
--auto-reopen AUTO_REOPENre-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)
--audit-rate AUDIT_RATEthe chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)
--audit-executor AUDIT_EXECUTORthe executor of the audit judge (sets run.audit_executor)
--step-executor STEP=NAMEthe executor of one step; repeatablerepeatable
--step-model STEP=ALIASthe model of one step; repeatablerepeatable
--approve STEPadd a person's approval pause at this step's gate; repeatablerepeatable
--grant UNIT=CAPABILITY[,…]give a unit extra tool capabilities for this run; repeatablerepeatable
--allow-command UNIT=PREFIXlet a unit run shell commands that start with this prefix; repeatablerepeatable
--enforce-toolslimit each step to the tools it declares; a step on an executor that cannot enforce them is refused
--strict-permissionsenforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode
--set KEY=VALUEset one run setting for this thread; repeatable (tempergraph config show lists the keys)repeatable
--settings FILEa JSON map of keys to values, recorded as flags
--profile PROFILEapply a named settings profile from the settings files; repeatablerepeatable
--workspace {auto,worktree,in_place}where each run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout)
--worktreethe same as --workspace worktree
--in-placethe same as --workspace in_place
--budget PERIOD:USDday, week or month, and the cap over that period
--catch-up {latest,none,all}slots missed while the machine was off: fire the latest (the default), none, or all
--overlap {skip,queue,parallel}a slot due while a run is live: skip it (the default), queue one, or start in parallel
--max-live MAX_LIVEwith --overlap parallel: the most runs live at once
--pause-after-failures PAUSE_AFTER_FAILURESpause the schedule after this many failed fires in a row
--name NAMEa name for the schedule
--input K=Va workflow input; repeatablerepeatable
--orchestration FILEschedule an orchestration file (not built yet)
--arg K=Van orchestration argument; repeatable (not built yet)repeatable
--program PROGRAMreserved
--checkparse and check; save nothing
--yessave without asking; with no terminal, the schedule is saved only with --yes
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule list#

every schedule on this machine

usage
tempergraph schedule list [-h] [--all] [--json]
OptionWhat it does
--allalso removed and finished schedules
--jsonprint the list as JSON

schedule show#

one schedule: entry, echo, next ten slots, last 20 fires

usage
tempergraph schedule show [-h] [--json] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--jsonprint the schedule as JSON

schedule history#

a schedule's fire log

usage
tempergraph schedule history [-h] [--since DATE] [--json] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--since DATEonly fires since this date
--jsonprint the history as JSON

schedule edit#

change a schedule's timing or options (its target is fixed)

usage
tempergraph schedule edit [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--workspace {auto,worktree,in_place} | --worktree | --in-place] [--budget PERIOD:USD] [--catch-up {latest,none,all}] [--overlap {skip,queue,parallel}] [--max-live MAX_LIVE] [--pause-after-failures PAUSE_AFTER_FAILURES] [--workflow WORKFLOW] [--repo REPO] [--orchestration ORCHESTRATION] [--program [PROGRAM]] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id [phrase]
ArgumentWhat it is
<id>the schedule id or name
<phrase>a new timing phraseoptional
OptionWhat it does
--when WHENa phrase such as 'every weekday at 8:00'
--at ATISO 8601 local, or with an offset or Z: once
--rrule RRULEan RFC 5545 RECUR of the stored subset
--every EVERYan ISO 8601 duration of at least PT15M
--cron CRONfive fields, read in the schedule's zone
--tz TZan IANA zone name
--starts STARTSthe first date the schedule may fire
--until UNTILthe last date the schedule may fire
--count COUNTstop after this many fires
--choose CHOOSEthe reading of an ambiguous phrase
--executor EXECUTORthe executor of every step (sets steps.executor)
--judge-executor JUDGE_EXECUTORthe executor of every judge (sets judges.executor)
--model MODELthe model of every step, as an alias such as sonnet or opus (sets steps.model)
--judge-model JUDGE_MODELthe model of every judge, as an alias (sets judges.model)
--timeout TIMEOUTseconds a step session may run before it is stopped (sets steps.timeout_s)
--judge-timeout JUDGE_TIMEOUTseconds a judge session may run before it is stopped (sets judges.timeout_s)
--idle IDLEseconds a step session may stay silent before it is stopped (sets steps.idle_s)
--run-cost-cap RUN_COST_CAPthe most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)
--daily-cap DAILY_CAPthe self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)
--auto-reopen AUTO_REOPENre-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)
--audit-rate AUDIT_RATEthe chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)
--audit-executor AUDIT_EXECUTORthe executor of the audit judge (sets run.audit_executor)
--step-executor STEP=NAMEthe executor of one step; repeatablerepeatable
--step-model STEP=ALIASthe model of one step; repeatablerepeatable
--approve STEPadd a person's approval pause at this step's gate; repeatablerepeatable
--grant UNIT=CAPABILITY[,…]give a unit extra tool capabilities for this run; repeatablerepeatable
--allow-command UNIT=PREFIXlet a unit run shell commands that start with this prefix; repeatablerepeatable
--enforce-toolslimit each step to the tools it declares; a step on an executor that cannot enforce them is refused
--strict-permissionsenforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode
--set KEY=VALUEset one run setting for this thread; repeatable (tempergraph config show lists the keys)repeatable
--settings FILEa JSON map of keys to values, recorded as flags
--profile PROFILEapply a named settings profile from the settings files; repeatablerepeatable
--workspace {auto,worktree,in_place}where each run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout)
--worktreethe same as --workspace worktree
--in-placethe same as --workspace in_place
--budget PERIOD:USDday, week or month, and the cap over that period
--catch-up {latest,none,all}slots missed while the machine was off: fire the latest (the default), none, or all
--overlap {skip,queue,parallel}a slot due while a run is live: skip it (the default), queue one, or start in parallel
--max-live MAX_LIVEwith --overlap parallel: the most runs live at once
--pause-after-failures PAUSE_AFTER_FAILURESpause the schedule after this many failed fires in a row
--workflow WORKFLOWa schedule's workflow is fixed: a different one is refused
--repo REPOa schedule's repository is fixed: a different one is refused
--orchestration ORCHESTRATIONrefused: a schedule's target kind is fixed
--program PROGRAMrefused: a schedule's target kind is fixed
--yessave without asking
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule pause#

stop firing a schedule

usage
tempergraph schedule pause [-h] [--reason REASON] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--reason REASONwhy, kept with the schedule
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule resume#

start a paused schedule again

usage
tempergraph schedule resume [-h] [--catch-up] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--catch-upthe slots passed while paused may still fire
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule skip#

skip the next slot, or every slot until a date

usage
tempergraph schedule skip [-h] [--next] [--until DATE] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--nextskip only the next slot
--until DATEskip every slot until this date
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule remove#

remove a schedule; its history stays

usage
tempergraph schedule remove [-h] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--yesremove without asking
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule runs#

every scheduled run on this machine, from any directory

usage
tempergraph schedule runs [-h] [--schedule SCHEDULE] [--repo REPO] [--workflow WORKFLOW] [--since DATE] [--outcome {started,skipped,missed,refused}] [--detail] [--json]
OptionWhat it does
--schedule SCHEDULEonly runs of this schedule
--repo REPOonly runs in this repository
--workflow WORKFLOWonly runs of this workflow
--since DATEonly runs since this date
--outcome {started,skipped,missed,refused}only runs with this outcome
--detaileach run's live status through its state root
--jsonprint the runs as JSON

schedule fire#

start one fire now through the tick's path; it spends

usage
tempergraph schedule fire [-h] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--yesfire without asking
--jsonprint the outcome as JSON
--caller {person,agent,pipeline,orchestrator,scheduler,engine}who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust
--as-agentthe same as --caller agent
--caller-app CALLER_APPthe name of the calling agent or pipeline application, recorded with the call
--relayedthe decision is a person's, carried by an agent; checked against the person's last turn

schedule trigger#

the os adapter: install, status and remove the per-user autostart entry

usage
tempergraph schedule trigger [-h] {install,status,remove} ...

schedule trigger install#

write one per-user entry that starts the loop at login; idempotent

usage
tempergraph schedule trigger install [-h] [--os] [--json]
OptionWhat it does
--osthe os adapter
--jsonprint the outcome as JSON

schedule trigger status#

every trigger seen, with its last error; writes nothing

usage
tempergraph schedule trigger status [-h] [--json]
OptionWhat it does
--jsonprint the status as JSON

schedule trigger remove#

delete what install wrote

usage
tempergraph schedule trigger remove [-h] [--json]
OptionWhat it does
--jsonprint the outcome as JSON

schedule loop#

the portable trigger: tick, sleep to the next slot or 60 s, repeat

usage
tempergraph schedule loop [-h] [--detach | --stop]
OptionWhat it does
--detachstart the loop in the background; a running one is reported
--stopend the running loop

schedule tick#

decide what is due and start it: the one call every trigger makes

usage
tempergraph schedule tick [-h] [--json]
OptionWhat it does
--jsonprint what was started as JSON

schedule export#

print a snippet for a pipeline system; keeps nothing

usage
tempergraph schedule export [-h] --for {github-actions,gitlab-ci,crontab} [--pin-offset] id
ArgumentWhat it is
<id>the schedule id or name
OptionWhat it does
--for {github-actions,gitlab-ci,crontab}the pipeline system to write the snippet forrequired
--pin-offsetfor a zone with daylight saving: pin today's UTC offset

Edit this page on GitHub · engine 0.9.0