Queue
Queued tasks per label set, which worker factories poll to start instances.
Get the queue depth
Queued tasks per label set, what factories poll.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
factory | string | Optional | |
soon_secs | string | Optional | |
wait_secs | string | Optional |
Response
rowsrows[].expected_ms_sum- the queued tasks'
expected_mssummed: the row's work in time, what a factory starts members by; absent from an older cell, whose rows keep the count rule rows[].labelsrows[].oldest_created_atrows[].queuedrows[].requested- what the queued tasks of this row ask for together and at most; absent from an older cell
rows[].requested.max- what a worker has (its
capacity, advertised at registration) or has left (free, in every poll and heartbeat): the same four axes asResources, every one present.disk_bytesandtmp_bytesare the volumes' free space minus the worker's floors rows[].requested.max.cpusrows[].requested.max.disk_bytesrows[].requested.max.memory_bytesrows[].requested.max.tmp_bytesrows[].requested.sum- what a worker has (its
capacity, advertised at registration) or has left (free, in every poll and heartbeat): the same four axes asResources, every one present.disk_bytesandtmp_bytesare the volumes' free space minus the worker's floors rows[].requested.sum.cpusrows[].requested.sum.disk_bytesrows[].requested.sum.memory_bytesrows[].requested.sum.tmp_bytesrows[].soon- queued tasks not yet ready whose every unfinished dependency is leased or running, expected to end
within
soon_secsand unlikely to fail: work a member started now would be ready for; absent from an older cell rows[].soon_ms_sum- their
expected_mssummed rows[].trust- tiers, with no order on purpose (amendment 2026-10-27):
trusted_ciis protected-branch automation and the cache writer every tier reads,trusted_interactivea person's own work, and neither is "below" the other, so every rule over tiers names the tiers it meansOne ofuntrusted,trusted_ci,trusted_interactive running_ends- with
?factory=: each task leased or running on that factory'sonlineworkers whose process has not ended, what the start rule forecasts freed slots from; absent without it and from an older cell running_ends[].left_msrunning_ends[].slotsrunning_ms_left- with
?factory=: the expected time left, in milliseconds, of the tasks leased or running on that factory's workers; absent without it and from an older cell
curl "$CIRESK_API/v1/ci/queue/depth" \
-H "Authorization: Bearer $CIRESK_KEY"