Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

sylphx workflows schedules

Every sylphx workflows schedules command: its argument, its flags and a run line.

The schedules commands of Sylphx Workflows, as the CLI spells them: the same calls as the schedules API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#get

Gets a schedule.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx workflows schedules get orgs/acme/projects/shop/envs/production/schedules/schedule

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules/schedule · scope workflows:read · effect read · Request, response and examples

#list

Lists schedules.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx workflows schedules list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules · scope workflows:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter over labels and filterable fields.
--order-bystringAIP-132 ordering over filterable fields.

#create

Creates a schedule.

ID — The id segment of the new Resource's name; the server assigns one when omitted.

CLI

Shell
sylphx workflows schedules create --parent orgs/acme/projects/shop/envs/production --spec.workflow …

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules · scope workflows:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.workflowstringThe Workflow the Schedule starts, in the same environment. Required.
--spec.inputjsonThe input of every Run, at most 64 KiB of JSON.
--spec.calendar.cronstringA 5-field cron expression, for example 0 3 * * *.
--spec.calendar.time-zonestringIANA time zone; default UTC.
--spec.interval.everydurationThe period, 1s to 365d.
--spec.interval.offsetdurationPhase offset within each period.
--spec.jitterdurationRandom delay added to each fire, at most min(interval, 1h).
--spec.overlap-policyenumWhat a fire does while a previous Run is still running. One of skip, buffer_one, buffer_all, cancel_other, allow.
--spec.catchup-windowdurationMissed fires older than this are skipped; 10s to 365d.
--spec.pausedboolWhether fires are paused.
--spec.pause-notestringWhy the Schedule is paused; shown in status.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.

#update

Updates a schedule.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx workflows schedules update orgs/acme/projects/shop/envs/production/schedules/schedule --spec.workflow …

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules/schedule · scope workflows:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.workflowstringThe Workflow the Schedule starts, in the same environment. Required.
--spec.inputjsonThe input of every Run, at most 64 KiB of JSON.
--spec.calendar.cronstringA 5-field cron expression, for example 0 3 * * *.
--spec.calendar.time-zonestringIANA time zone; default UTC.
--spec.interval.everydurationThe period, 1s to 365d.
--spec.interval.offsetdurationPhase offset within each period.
--spec.jitterdurationRandom delay added to each fire, at most min(interval, 1h).
--spec.overlap-policyenumWhat a fire does while a previous Run is still running. One of skip, buffer_one, buffer_all, cancel_other, allow.
--spec.catchup-windowdurationMissed fires older than this are skipped; 10s to 365d.
--spec.pausedboolWhether fires are paused.
--spec.pause-notestringWhy the Schedule is paused; shown in status.
--allow-missingboolCreate the schedule when it does not exist (declarative upsert).
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.

#delete

Deletes a schedule.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx workflows schedules delete orgs/acme/projects/shop/envs/production/schedules/schedule --yes

DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules/schedule · scope workflows:write · effect destructive · Request, response and examples

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--allow-missingboolSucceed when the schedule does not exist.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.
--yesboolDo not ask before this destructive call.

#pause

Pauses a Schedule: no fire starts a Run until it is resumed.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx workflows schedules pause orgs/acme/projects/shop/envs/production/schedules/schedule

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules/schedule:pause · scope workflows:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--pause-notestringWhy the Schedule is paused.
--etagstringAct only if the current etag matches.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.

#resume

Resumes a paused Schedule; missed fires follow catchup_window.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx workflows schedules resume orgs/acme/projects/shop/envs/production/schedules/schedule

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/schedules/schedule:resume · scope workflows:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--etagstringAct only if the current etag matches.
--dry-runboolValidate and print the result without writing (validate_only).
--no-waitboolReturn the call at once instead of waiting for it to finish.