Skip to content

[Bug] captcha: hung worker triggers timeout cascade (30000ms timeout, 4 retries, upstream 503s) #82

Closed

Description

@AlexDeveloperUwU

Symptom

CAPTCHA solves (start-plan) fail in a cascade:

  • worker timeout (30000ms)
  • four retries
  • parallel solve failures
  • upstream 503s

Cause

When a worker hangs, the client-facing race deadline expires but the parallel worker solves are not cancelled. They keep running as orphans, so retries compete with them and later solves fail the same way.

Fix

Fix proposed in #81: propagate an AbortSignal through captcha pool → solver → worker dispatch, and abort/terminate parallel worker solves when the race deadline expires (warm workers and worker-per-solve workers), with a hung-worker regression test.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions