Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
automatedOpened by an automationbugBugpriority: mediumMedium priorityservice: platformPlatform service
Description
Problem
Once the workflow workpool's pending/running set is large enough, the workpool's own bookkeeping mutation exceeds the self-hosted backend's 15 s total-syscall budget and dies. That stalls or delays every workflow multiplexed through workflow_1, and the client-facing flavor is the generic "Your request timed out performing too many system operations."
Evidence (GlitchTip, demo.tale.dev)
- TALE-PROJECT-NM — backend
SystemTimeoutError: Your request timed out performing too many system operations.with causeHit maximum total syscall duration (maximum duration: 15s)— 354 events, 2026-06-28 → 2026-08-21T00:00Z (release: local-backend@unknown). - TALE-PROJECT-O0 — the same failures as recorded by the function runner (
Error: Your request timed out performing too many system operations.) — 114 events, 2026-07-06 → 2026-08-21T00:00Z. The latest events in both groups carry the samerequest_id(9e08499397e0e374) — one failure, two groups (same double-reporting pattern as the workflow-engine retry issue). - Failing function:
loop:updateRunStatus(mutation) in componentworkflow_1/workpool—@convex-dev/workpool's internal main-loop bookkeeping mutation inside the second workflow component instance (app.use(workflow, { name: 'workflow_1' }),services/platform/convex/convex.config.ts). The engine code that feeds this pool lives in the private overlay. - Both groups' final burst is 2026-08-21 00:00:2xZ, quiet since — the failure tracks accumulated workpool state ("latent, not gone"): the July issue-desk retry storm (5,370 junk executions) is the known growth driver; any legitimately busy org reproduces it.
- Related contention signals in the same subsystem: TALE-PROJECT-8 —
OptimisticConcurrencyControlFailureon the workpool'spendingCompletiontable, 73 events → 08-20; TALE-PROJECT-PD — same onpendingStart, 33 events → 08-20.
Proposed direction
- Upgrade the pinned components and re-test under backlog:
@convex-dev/workpool0.4.6 → 0.4.10,@convex-dev/workflow0.3.9 → 0.4.6 (services/platform/package.json:47-48) — the workpool main loop is exactly the code upstream iterates on. - Bound what feeds the pool: pause-on-permanent-failure for misconfigured schedules removes the junk generator; consider retention/GC of completed execution state (the same unbounded data the org-metrics 16 MiB issue wants aggregated).
- Single-report per failure (NM+O0 share request ids).
Acceptance
A backlog comparable to July's storm produces no SystemTimeoutError from workflow_1/workpool; a forced failure reports one GlitchTip event, not two.
Filed by the GlitchTip triage sweep of demo.tale.dev (2026-08-28). Tracked on the tale board as TAL-18 — "Workflow workpool loop hits Convex's 15s syscall ceiling under backlog — SystemTimeoutError ×468, double-reported" (status: todo).
Metadata
Metadata
Assignees
Labels
automatedOpened by an automationbugBugpriority: mediumMedium priorityservice: platformPlatform service
Activity
yannickmonney commentedon Sep 27, 2026
Closing as obsolete.
@convex-dev/workpooland@convex-dev/workfloware gone, and automation runs are stepped bybackend/core/automations/stepper.tson pg-boss jobs. There is no syscall ceiling, and a failed job is reported once (backend/jobs/runner.ts).