Every fixed limit and default in Bok Joy, in one place. Each number here is read from the code, and a test fails if the code changes it.
Limits marked default can be changed by whoever runs the control plane. On the hosted alpha, the defaults apply.
Tasks and manifests#
| Limit | Value |
|---|
| Tasks in a manifest | 1 to 1,000 |
| Task ID | 1 to 128 bytes, unique in the manifest |
| Handler name | 1 to 128 bytes |
max_attempts | 1 to 10. Default 3. A task's retry.maxAttempts is the same number. |
retry.factor | 1 to 10. Default 2. |
retry.minTimeoutInMs, retry.maxTimeoutInMs | 0 to 86,400,000 (24 hours) each. Defaults 1,000 and 60,000. |
cpu_millis | 100 to 8,000. Default 500. |
memory_mib | 128 to 16,384. Default 512. |
timeout_ms, per attempt | 100 to 86,400,000 (24 hours). Default 30,000. A handler past it fails the run with no retry. |
| Machine presets | micro (0.25 vCPU, 256 MiB) to large-2x (8 vCPU, 16 GiB). See Machine sizes. |
Runs#
| Limit | Value |
|---|
| Payload | 3 MiB of JSON |
| Output | 10 MiB of JSON |
| Stored out of line | A payload or output over 512 KiB. Reading the run returns it whole. |
| Request body | 4 MiB to start a run, 16 MiB for a batch, 1 MiB for anything else |
| Idempotency key | 1 to 128 bytes |
| Tags | 10 per run, each 1 to 128 characters |
| Batch | 1 to 1,000 runs. A batch key is at most 124 bytes. |
| Error message kept | 4,096 bytes |
| Logs kept per attempt | 64 KiB: the first half and the newest output |
| Retries | Until max_attempts attempts have failed. Each waits 1 second, doubling, times a random 1 to 2, and at most 60 seconds, unless the task's retry says otherwise. AbortTaskRunError and a handler's timeout end the run with no retry. |
| Deferred attempts | Retried after 1 second, doubling to 60 seconds. The run fails if it still cannot start an hour after the first deferral (default). |
| Capacity wait | The run fails if no worker can hold it within an hour (default). While every machine it may use is busy, it waits with no deadline. |
| Runs kept | Until run retention deletes the whole run tree, once every run in it has settled and nothing still needs it. Off by default. The hosted alpha deletes a tree whose root completed after 30 quiet days, and one whose root failed or was cancelled after 90. |
Workflows#
| Limit | Value |
|---|
| Steps per workflow | 1,024 |
ctx.batchTriggerAndWait | 1 to 1,000 children of one task. Each counts toward the run tree's limit below. |
ctx.sleep | 0 to 604,800,000 ms (7 days) |
ctx.waitEvent timeout | 1 to 604,800,000 ms (7 days). Default 60,000. |
| Event name, and event ID | 1 to 128 bytes each |
| Event payload | 1 MiB of JSON |
| A child's input | 3 MiB of JSON, as any payload. A batch's inputs are at most 10 MiB together. |
| A child's result | Its output, at most 10 MiB |
| Recorded steps | 256 MiB of JSON in all, stored out of line or not. Every replay reads them all again. |
| Everything an attempt receives | 16 MiB: payload, variables and the inline part of every recorded step. Values stored out of line follow it, one at a time. |
Held waits#
A wait in a plain Node task (In a plain task):
| Limit | Value |
|---|
| Time held | 24 hours in all, per attempt. Past it the attempt stops and is not retried. Held time does not count toward timeout_ms. |
| Waits at once | 1 |
ctx.batchTriggerAndWait | 0 to 1,000 children of one task |
| Children an attempt starts | 1,000, waits and ctx.trigger together |
| A wait's results | 16 MiB of JSON together |
| Waiting tasks a machine keeps | 2 per slot for each project (default). Past that it starts only the children they wait on. |
Live progress and run trees#
| Limit | Value |
|---|
| Updates per attempt | 1,400, of which 1,000 are kept for ctx.trigger |
ctx.trigger calls per attempt | 1,000. 100 on a worker agent from before this release. |
| One update | 256 KiB |
| All updates of an attempt | 8 MiB, of which metadata and milestones may use 6 MiB |
| Metadata per run | 64 KiB of JSON |
| Metadata key, milestone name, trigger key | 1 to 128 bytes |
Milestone detail | 1,024 bytes |
Milestone progress | 0 to 1 |
| Run tree depth | 32 (default, at most 64) |
| Triggered and batched runs per tree | 10,000 (default, at most 100,000) |
Run streams#
| Limit | Value |
|---|
| Runs in a snapshot | 500 |
| Milestones per run in a snapshot | The newest 20 |
| Open streams per control plane | 256 |
| Keep-alive ping | Every 15 seconds. A connection silent for 45 seconds counts as dropped. |
| Events of a finished run tree | Kept 30 days (default) |
| Client reconnect | Gives up after 60 seconds without a connection |
Environments, keys and variables#
| Limit | Value |
|---|
| Preview branch name | 1 to 100 bytes |
| API key name | 1 to 64 characters |
| Variable name | 1 to 128 characters of A-Za-z0-9_, not starting with a digit |
| Variable value | 16 KiB |
| Variables per environment | 100 |
| Variables per run | 256 KiB in all |
Deployments#
| Limit | Value |
|---|
| Bundle | 10,000 files and 64 MiB |
| One file in a bundle | 16 MiB |
Cloud workers and hot tasks#
| Limit | Value |
|---|
| Idle cloud worker | Removed after 60 seconds (default) |
| Cloud worker boot | Given up after 180 seconds (default) |
| Warm workers per hot task | 1 to 16 |
| Warm first | A new run of a hot task is left to its warm workers for up to 3 seconds |
Queues#
| Limit | Value |
|---|
| Concurrency limit | 1 to 100,000 runs of a queue at once, in each environment. Default: no limit. |
| Queue name | 1 to 128 letters, digits and _ - . /, not starting with task/ |
| Concurrency key | 1 to 128 bytes of UTF-8, no whitespace at either end, no control, invisible format or line break characters. Case and bytes count exactly. |
| Sleep that keeps its slot | Under 60 seconds |
GET /v1/queues page | 50 queues, at most 200 |
Schedules#
| Limit | Value |
|---|
| Cron | 5 fields, at most 100 bytes. The shortest interval is 1 minute. |
| Time zone | An IANA name of at most 64 bytes. Default UTC. |
| Declared schedule environments | Prod only, unless environments names others: dev, staging or preview. Schedules created through the API never run in previews. |
| Schedules created through the API | 1,000 per environment |
| External ID, and deduplication key | 1 to 128 bytes each |
| Upcoming ticks in a payload | 5 |
| Ticks decided per pass | 256, in one pass a second |
| Tick history | Kept 30 days (default). Each schedule's latest fired tick is always kept. |
| Deleted API schedules | Removed with their ticks 30 days (default) after the delete, even when events are kept forever. Their runs stay. |
GET /v1/schedules page | 50 schedules, at most 200 |
Trigger client#
| Setting | Default |
|---|
| Request timeout | 30 seconds |
| Retries per request | 2, from 0 to 10 |
Longest Retry-After honored | 10 seconds |
| Poll interval while waiting | 1 second |
| Run reread while a stream is open | Every 10 seconds |
GET /v1/runs page | 50 runs, at most 200. A tag filter names at most 100 tags. |