Skip to content

Known gaps

What an instance does not do yet, and what each gap means for the people who use it.

An instance is young. This page lists what it does not do yet, so nobody finds out by surprise. It is the one place for caveats: other pages link here instead of repeating them.

Security ​

GapWhat it means
The controller's DEPLOY_API_TOKEN has Workers Scripts Write and Secrets Store Edit for the whole account, and Cloudflare's per-Worker token scope does not limit the Workers Scripts API (A dedicated account).A holder of an unlimited deployer token can reach every Worker and Secrets Store secret in the account through a platform upload. Run each instance in a dedicated account, give unlimited deployer tokens only to CI and the owner, and other deployers a named token limited to their Scrapers.
An instance installed before SCRAPER_SETTINGS existed gives every Release the same settings, RELEASE_ENV without the keys the front desk holds, until its owner sets SCRAPER_SETTINGS.Until then, a key put in RELEASE_ENV for one Scraper can be read by every Release on the instance. Set SCRAPER_SETTINGS with each Scraper's own entry; from then on RELEASE_ENV reaches only the front desk.

Capabilities ​

GapWhat it means
A Worker release's proxied requests go through one shared proxy relay Container, basic size, up to 64 at a time, over a new connection per request (Credentials).A cold relay start adds seconds to a Run's first proxied request, request bodies are buffered whole, and many Scrapers proxying at once share one Container. Workers RPC cannot carry an abort signal, so interrupting a Run does not cancel its proxied request in flight; the relay finishes it and the answer is dropped.
A Release in its own sandbox exports its spans through the front desk, every 5 seconds and when its Run ends, and each export is a Workers RPC call (Spans from a Release's sandbox).The exports count against the Run's 10,000 outgoing requests, about 170 in a 14-minute Run. Spans still buffered when the Run owner cuts the sandbox off are lost. Its input check and schemas, asked before a Run, export no spans.
Runs of the same Release reuse its sandbox, and Runs that overlap share its isolate (Each Release in its own sandbox).State at module level carries over between Runs of a Release and is seen by its Runs at the same time; keep per-Run state inside the stream. Overlapping Runs share one isolate's memory, 128 MB, so many large Runs of one Release at once can exhaust it.
Loading a Release's sandbox tries each artifact read three times within about 300 milliseconds (Each Release in its own sandbox).A longer R2 outage still answers 503 release_unavailable with reason artifact_read_failed; nothing ran, so retry it. The full message is only on the Runtime.release span and in the Worker's logs (Finding why a Release was unavailable).
Outside an instance, such as in a script, browserUse logs a Browser Use session it cannot verify as stopped instead of failing, and nothing retries the stop. On an instance the Run owner retries it (Browser Use sessions end with their Run).Such a session keeps running, and costing, until its Browser Use timeout: 10 minutes for browserUse, 1 to 240 minutes for browserUseWith (browserUse).
A Run owner that Cloudflare resets mid-Run stops the Run's Browser Use sessions only when its watchdog alarm marks the Run abandoned, 16 minutes after the Run started.A session with a timeout shorter than that ends at its timeout instead; one with a longer timeout runs, and costs, until then.

Runs and results ​

GapWhat it means
A Run lasts at most 14 minutes, because its Run owner runs it from a Durable Object alarm, which Cloudflare stops after 15 minutes (Run duration).Split longer work into several Runs with narrower inputs. A Release that does not stop within 30 seconds of its limit, such as one stuck in synchronous code or in a finalizer, is ended by its Run owner with RunTimeout without its scope closing. The Run owner then stops its Browser Use sessions; a browserRun browser stays open until Browser Run ends it as idle.
Letting Runs finish through a deploy is best effort on Cloudflare's side, which can reset a Run owner early, for example during a Workers runtime update.Such a Run ends failed, saying a deploy cut it when the generation changed and that its owner stopped otherwise, and the items of its last unstored chunk are lost. Retry it.
A Release in its own sandbox that keeps running 30 seconds after a forced deploy asked it to stop, such as one stuck in synchronous code, is cut off from the Run owner's side, where its finalizers do not run.Its items are stored and the Run owner stops its Browser Use sessions, but its finalizers do not run: a browserRun browser stays open until Browser Run ends it as idle.
A Release in its own sandbox that awaits a promise that never settles, with no timer or I/O pending, is cancelled by the Workers runtime after a few seconds.The Run ends failed with ReadableStream received over RPC disconnected prematurely, and the item it was about to send is lost. Give such a wait a timeout.
Items are stored in chunks of up to 100 items, 4 MiB or 5 seconds, each chunk costing two R2 writes, one of them to the same metadata key.A running record's count trails the Run, and a Run owner that dies mid-Run loses its last unstored chunk.
A Run of a Worker release moves 50 to 200 small items a second from its sandbox to storage, varying between instances: on three fresh instances 100,000 items took 491 seconds, and 20,000 took 100 and 387 seconds (fresh-throughput, Testing a fresh install). Storage writes come from the Run owner and do not count against the Release's requests.Within the 14-minute ceiling a Run stores between about 40,000 and 170,000 items, fewer when the Scraper spends time on requests or parsing. Split larger jobs into several Runs.
A Worker release makes at most 10,000 outgoing requests per Run, Cloudflare's default subrequest limit for its sandbox; retries count. Raising the release Worker's own limits.subrequests does not raise it: a sandbox runs with the plan's default, and custom limits on a Dynamic Worker can only lower it (Cloudflare). Measured on a fresh instance whose release Worker allowed 100,000, a Run fetching once per item still failed after storing 10,000 items, in 169 seconds, while 2,000 direct requests took 18 and 41 seconds at 6 at a time. A proxied request is a Workers RPC call to the front desk, which Cloudflare counts against the same limit; that was not measured separately, and Apify Proxy requests at 6 at a time completed one every 0.2 to 0.3 seconds (100 in 18 seconds, 50 in 16).The Run ends failed with the items stored so far and failure { "_tag": "RequestLimitExceeded", "reason": "The Run reached Cloudflare's limit on outgoing requests from one Run, 10,000 by default: …" }, whether or not the Definition declares it (Errors). A Release that calls fetch itself instead of through HttpClient fails with Cloudflare's own error instead. Plan Runs at under 10,000 requests, and expect proxied Runs to be bound by time first: at those rates the 14 minutes hold about 2,700 to 4,600.
GET /results/<resultId>/items reads a result's chunks from R2 four at a time, each chunk up to 100 items.A large result streams for a while: 20,000 items took 8 seconds on a fresh instance, about 2,500 items a second.

Deploys and operations ​

GapWhat it means
Rollback history starts with the controller that records it and keeps the last 20 replaced identities per Scraper and platforms. A platform rollback restores the platform's plain-text bindings other than RUN_TOKENS, RUN_TOKEN_SHA256 and GRANTS (Rolling back).An identity replaced before then, or more than 20 deploys ago, cannot be rolled back to. A changed INSTANCE_URL, result retention or trace target goes back to the restored platform's until the Stack is applied.
A new Run owner can start on the previous version for a few seconds after a deploy answers active, while the catalog already lists the new Release. It waits for the new version, checking every 5 seconds for up to a minute (Runs during a deploy).A Run started in that window starts up to a minute late. An owner still on the previous version after that minute ends the Run failed, saying its Release was replaced before the Run started, with no items; start it again.
The controller adds Durable Object classes but never removes or renames one, and a Worker cannot roll back across a class it added (Durable Object classes).Retiring a class needs a separately approved Cloudflare migration. A platform rollback to a version from before a class change answers 409.
An instance still installs an artifact a client built and sent to POST /deployments, deprecated since 0.10.0, with createDeployer().deploy and submit with an artifact (Client-built artifacts).Such an artifact was not typechecked on the instance. 0.11.0 refuses it; deploy from source through POST /builds, as scwrap deploy does.
The compatibility check covers named imports from scwrap-sdk.mjs only.A Release that reads a missing name through a namespace import, or relies on a name whose behaviour changed, still deploys and fails at run time.

What comes next ​

The order these are meant to close in is in the vision, starting with the gaps under Security. What an instance will not do, such as scheduling Runs or calling back when one ends, is listed under the vision's non-goals.