Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

sylphx workflows jobs

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

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

#get

Gets a job.

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

CLI

Shell
sylphx workflows jobs get orgs/acme/projects/shop/envs/production/jobs/job

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

#list

Lists jobs.

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

CLI

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

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/jobs · 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 job.

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

CLI

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

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/jobs · 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.servicestringThe Hosting Service whose env and Secret bindings every run takes, and whose live Release image it runs unless image or build names another, so a Job never runs code the environment does not serve. Required.
--spec.imagestringA digest-pinned image from this org's Artifacts, in place of the service's image. Exclusive with build.
--spec.commandstringThe entrypoint; empty keeps the image's. Repeat the flag for each value.
--spec.argsstringArguments; a run may replace them. Repeat the flag for each value.
--spec.envkey=valueEnvironment overrides on top of the service's env and Secret bindings. Repeat the flag for each value.
--spec.instance-typestringA Hosting instance type; default standard.
--spec.timeoutdurationOne attempt's deadline, 10s to 24h; default 1h.
--spec.max-retriesintRe-runs after a non-zero exit, 0 to 10; backoff 30s doubling.
--spec.concurrencyenumWhat a start does while a run is active; default forbid. One of forbid, queue, allow.
--spec.buildstringA build the project declares: its latest built image, in place of the service's; the image needs no running service of its own. Exclusive with image.
--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 job. Runs already started keep the generation they pinned.

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

CLI

Shell
sylphx workflows jobs update orgs/acme/projects/shop/envs/production/jobs/job --spec.service …

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/jobs/job · 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.servicestringThe Hosting Service whose env and Secret bindings every run takes, and whose live Release image it runs unless image or build names another, so a Job never runs code the environment does not serve. Required.
--spec.imagestringA digest-pinned image from this org's Artifacts, in place of the service's image. Exclusive with build.
--spec.commandstringThe entrypoint; empty keeps the image's. Repeat the flag for each value.
--spec.argsstringArguments; a run may replace them. Repeat the flag for each value.
--spec.envkey=valueEnvironment overrides on top of the service's env and Secret bindings. Repeat the flag for each value.
--spec.instance-typestringA Hosting instance type; default standard.
--spec.timeoutdurationOne attempt's deadline, 10s to 24h; default 1h.
--spec.max-retriesintRe-runs after a non-zero exit, 0 to 10; backoff 30s doubling.
--spec.concurrencyenumWhat a start does while a run is active; default forbid. One of forbid, queue, allow.
--spec.buildstringA build the project declares: its latest built image, in place of the service's; the image needs no running service of its own. Exclusive with image.
--allow-missingboolCreate the job 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 job.

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

CLI

Shell
sylphx workflows jobs delete orgs/acme/projects/shop/envs/production/jobs/job --yes

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

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--allow-missingboolSucceed when the job does not exist.
--dry-runboolValidate and print the result without writing (validate_only).
--forceboolAlso cancel active runs and delete Schedules targeting the job; without it a job with an active run or a Schedule fails with INVALID_STATE.
--no-waitboolReturn the call at once instead of waiting for it to finish.
--yesboolDo not ask before this destructive call.