Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Wait a run

Waits up to `timeout` (at most 60s) for the Run to close, then returns it, closed or not.

Waits up to timeout (at most 60s) for the Run to close, then returns it, closed or not.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow/runs/run:wait
  • Scope workflows:read
  • Effect read — nothing is written.
  • Collection runs

#Request

FieldTypeWhat it is
namestringThe name of the run. Required.
timeoutdurationHow long to wait; default 30s, at most 60s.

#Response

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/workflows/{workflow}/runs/{run}.
uidstringrun_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
workflow_generationint64The Workflow generation the Run pinned at start. Output only.
inputstructThe Run input, at most 256 KiB of JSON.
start_delaydurationDelay the first invocation by this much.
stateRunStateThe Run's lifecycle state. Output only. One of running, succeeded, failed, cancelled, timed_out.
schedule_fireScheduleFireRefSet when a Schedule fire started the Run. Output only.
batch_positionBatchPositionSet on a child of a batch Run. Output only.
start_timetimestampWhen the Run started. Output only.
end_timetimestampWhen the Run closed. Output only.
attempt_countint32Attempts made so far, across every step. Output only.
outputstructThe handler's complete output, once succeeded. Output only.
errorRunErrorThe failure, once failed or timed_out. Output only.
schedule_timetimestampWhen the first invocation is due: set it directly, or through start_delay; at most 365 days ahead. A Run cancelled before then closes cancelled with no invocation.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#ScheduleFireRef

FieldTypeWhat it is
schedulestringThe Schedule. Output only.
intended_timetimestampThe instant the fire was due. Output only.

#BatchPosition

FieldTypeWhat it is
parent_runstringThe parent batch Run. Output only.
indexint32Zero-based index of this child. Output only.
total_countint32Number of children in the batch. Output only.

#RunError

FieldTypeWhat it is
codestringA machine-readable code, for example handler_rejected or card_declined. Output only.
messagestringA customer-safe message. Output only.
retryableboolWhether the handler marked the failure retryable. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow/runs/run:wait" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'