Skip to content

Bug: workflow workpool main loop hits Convex's 15 s syscall ceiling under backlog — SystemTimeoutError ×468, double-reported #3095

Closed as not planned

Description

@larryro

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 cause Hit 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 same request_id (9e08499397e0e374) — one failure, two groups (same double-reporting pattern as the workflow-engine retry issue).
  • Failing function: loop:updateRunStatus (mutation) in component workflow_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 — OptimisticConcurrencyControlFailure on the workpool's pendingCompletion table, 73 events → 08-20; TALE-PROJECT-PD — same on pendingStart, 33 events → 08-20.

Proposed direction

  1. Upgrade the pinned components and re-test under backlog: @convex-dev/workpool 0.4.6 → 0.4.10, @convex-dev/workflow 0.3.9 → 0.4.6 (services/platform/package.json:47-48) — the workpool main loop is exactly the code upstream iterates on.
  2. 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).
  3. 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).

Activity

  1. added
    priority: medium
    bug
    service: platform
    automated
    on Aug 28, 2026
  2. yannickmonney commented on Sep 27, 2026

    @yannickmonney
    Contributor

    Closing as obsolete. @convex-dev/workpool and @convex-dev/workflow are gone, and automation runs are stepped by backend/core/automations/stepper.ts on pg-boss jobs. There is no syscall ceiling, and a failed job is reported once (backend/jobs/runner.ts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedbugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions