Skip to content

chore(scale): add worker failure recovery and bounded retry semantics #325

Description

@parthrohit22

Parent: #210

Goal

Make worker death and retry behavior deterministic without orphaning analysis jobs.

Scope

  • Detect worker loss or lease expiry.
  • Restore jobs to a safe queued or terminal state.
  • Bound retries and preserve the existing CANCELLED_CODE lifecycle.
  • Record recovery events without logging source contents or secrets.

Acceptance criteria

  • Worker failure does not leave an analysis job permanently stuck.
  • Retry count and terminal failure are deterministic.
  • Cancellation is not resurrected by recovery.
  • Snapshots are not duplicated or partially committed.
  • Tests cover crash, timeout, retry exhaustion, and cleanup.

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions