Schedules
Runs a branch's manifest starts on a timer: list them with their last run, pause one, run one now.
List schedules
Schedules, their last run and the templates on offer.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
repo | string | Optional |
Response
datadata[].branch- without
refs/heads/ data[].crondata[].declared_atdata[].declared_by- the subject of the job whose manifest declared it as it is now
data[].declared_job_id- uuidv7 rendered as
job_<32 hex> data[].fulldata[].id- uuidv7 rendered as
sch_<32 hex> data[].kindcheck,test,build,lintor a manifest task iddata[].last- one occurrence of a schedule
data[].last.due_atdata[].last.job_id- uuidv7 rendered as
job_<32 hex> data[].last.reason- why it was skipped or still waits:
paced,budget,missed,no_treeor a refusal's code data[].last.requested_by- who asked for a manual run
data[].last.statewaitinguntil it ran or its window endedOne ofwaiting,fired,skippeddata[].last.trigger- One of
cron,manual data[].namedata[].next_run_at- none while paused
data[].next_run_localnext_run_atin the schedule's zone, rfc 3339 with its offsetdata[].no_cachedata[].paused_by- who paused it, while it is paused
data[].repo_id- uuidv7 rendered as
repo_<32 hex> data[].state- One of
active,paused data[].targetsdata[].timezonedata[].window_secstemplatestemplates[].nametemplates[].summarytemplates[].yaml
curl "$CIRESK_API/v1/ci/schedules" \
-H "Authorization: Bearer $CIRESK_KEY"Pause or resume a schedule
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The schedule's ID. |
Request body
paused
Response
branch- without
refs/heads/ crondeclared_atdeclared_by- the subject of the job whose manifest declared it as it is now
declared_job_id- uuidv7 rendered as
job_<32 hex> fullid- uuidv7 rendered as
sch_<32 hex> kindcheck,test,build,lintor a manifest task idlast- one occurrence of a schedule
last.due_atlast.job_id- uuidv7 rendered as
job_<32 hex> last.reason- why it was skipped or still waits:
paced,budget,missed,no_treeor a refusal's code last.requested_by- who asked for a manual run
last.statewaitinguntil it ran or its window endedOne ofwaiting,fired,skippedlast.trigger- One of
cron,manual namenext_run_at- none while paused
next_run_localnext_run_atin the schedule's zone, rfc 3339 with its offsetno_cachepaused_by- who paused it, while it is paused
repo_id- uuidv7 rendered as
repo_<32 hex> state- One of
active,paused targetstimezonewindow_secs
curl -X POST "$CIRESK_API/v1/ci/schedules/52b1f8be-1255-4119-993d-3c12e08650d7/set" \
-H "Authorization: Bearer $CIRESK_KEY" \
-H "Content-Type: application/json" \
-d '{
"paused": true
}'Start a scheduled run now
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | The schedule's ID. |
Response
due_atjob_id- uuidv7 rendered as
job_<32 hex> reason- why it was skipped or still waits:
paced,budget,missed,no_treeor a refusal's code requested_by- who asked for a manual run
statewaitinguntil it ran or its window endedOne ofwaiting,fired,skippedtrigger- One of
cron,manual
curl -X POST "$CIRESK_API/v1/ci/schedules/52b1f8be-1255-4119-993d-3c12e08650d7/trigger" \
-H "Authorization: Bearer $CIRESK_KEY"