Keep cold Find Work startup reliable across workers #695

Closed
opened 2026-08-13 01:19:03 +00:00 by timmy · 0 comments
Owner

Problem

On an empty shared catalog, a request handled by a non-owner worker polls for only about one second even though the lease-owning scan has a five-second foreground budget. A valid scan taking longer than one second therefore causes a false 503 on another worker.

Scope

  • Wait for a valid lease owner within the bounded foreground deadline.
  • If the owner releases or abandons the lease, let the waiting worker take over within the remaining budget.
  • Preserve immediate stale-catalog behavior and prevent duplicate scans while a lease is valid.

Acceptance

  • A second worker receives a catalog published after more than one second but before the route deadline.
  • A second worker takes over after an owner releases without publishing.
  • A valid stalled lease remains bounded and does not trigger a duplicate scan.
  • Focused and full test suites pass.
## Problem On an empty shared catalog, a request handled by a non-owner worker polls for only about one second even though the lease-owning scan has a five-second foreground budget. A valid scan taking longer than one second therefore causes a false 503 on another worker. ## Scope - Wait for a valid lease owner within the bounded foreground deadline. - If the owner releases or abandons the lease, let the waiting worker take over within the remaining budget. - Preserve immediate stale-catalog behavior and prevent duplicate scans while a lease is valid. ## Acceptance - A second worker receives a catalog published after more than one second but before the route deadline. - A second worker takes over after an owner releases without publishing. - A valid stalled lease remains bounded and does not trigger a duplicate scan. - Focused and full test suites pass.
timmy self-assigned this 2026-08-13 01:19:03 +00:00
timmy closed this issue 2026-08-13 01:25:02 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#695
No description provided.