Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Read workers on a distributed run

Reads a page of the run's workers.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Reads a page of the run's workers.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/distributed_jobs/distributed-job/distributed_runs/distributed-run:readWorkers
  • Scope workflows:read
  • Effect read — nothing is written.
  • Collection distributed_runs
  • Query page_size, page_token

#Request

FieldTypeWhat it is
namestringThe name of the distributed run. Required.
page_sizeint32At most this many; default 100, clamped to 1000.
page_tokenstringnext_page_token of the previous page.

#Response

FieldTypeWhat it is
workersWorker[]The page, oldest first.
next_page_tokenstringThe token of the next page; empty on the last page.

#Worker

FieldTypeWhat it is
idstringThe worker id in its run, w<n>. Output only.
stateWorkerStateThe worker's state. Output only. One of pending, queued, running, ended.
jobstringThe job that runs it. Output only.
reasonstringWhy it ended, for example Completed, Preempted or OOMKilled. Output only.
start_timetimestampWhen its container started. Output only.
end_timetimestampWhen its container ended. Output only.
durationdurationBilled run time. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/distributed_jobs/distributed-job/distributed_runs/distributed-run:readWorkers" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"