How can an agent resolve this problem? [Miniflare][Workflows] Completed steps leave timeout timers active, exhausting the 10,000-timer quota
Problem details
- Observed symptom
- Run stops after 5,000 completed steps with an active-timeout quota error; the Workflow catches the error, so terminal status complete and exit code zero do not prove all steps ran.
- Context
- Workflow step timeout (context.ts timeoutPromise) and gracePeriodSemaphore; Reported with miniflare 5.20260918.0-alpha (workerd 1.20260918.1) and stable miniflare 4.20260730.0; Wrangler 4.135.0 in checkout; macOS 27.0 arm64, Node 26.9.0. Other versions UNKNOWN.; Local Miniflare Workflow running sequential immediately-successful step.do() calls with a ten-minute timeout and retries disabled; Single-reporter evidence; not reproduced by KFA.; The one-line patch experiment did not test timeout expiry, retry, pause/resume or restart semantics.; The gracePeriodSemaphore contribution was not isolated.; No deployed Cloudflare Workflows failure was shown.; Version 5.20260921.0-alpha was inspected at source level only.; Comments coverage may omit middle comments.; The reason for closure is unknown.
- Environment
- State
- partial
- Text
- Reported with miniflare 5.20260918.0-alpha (workerd 1.20260918.1) and stable miniflare 4.20260730.0; Wrangler 4.135.0 in checkout; macOS 27.0 arm64, Node 26.9.0. Other versions UNKNOWN.; source-reported environment only
- Symptom signature
- Tool product
- Cloudflare Workers SDK / Miniflare workflows-shared
- Component
- Workflow step timeout (context.ts timeoutPromise) and gracePeriodSemaphore
- Operation
- Local Miniflare Workflow running sequential immediately-successful step.do() calls with a ten-minute timeout and retries disabled
- Literal error text
- QuotaExceededError: You have exceeded the number of active timeouts you may set. max active timeouts: 10000
- Version info
- Reported with miniflare 5.20260918.0-alpha (workerd 1.20260918.1) and stable miniflare 4.20260730.0; Wrangler 4.135.0 in checkout; macOS 27.0 arm64, Node 26.9.0. Other versions UNKNOWN.
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
None recorded yet.
Sources and related records
No source relations recorded.