Skip to content

fix(dispatcher): prevent run ID mismatches when multiple groups share a workflow#20

Merged
skylenet merged 1 commit intomasterfrom
fix-job-detection-ll
Feb 18, 2026
Merged

fix(dispatcher): prevent run ID mismatches when multiple groups share a workflow#20
skylenet merged 1 commit intomasterfrom
fix-job-detection-ll

Conversation

@skylenet
Copy link
Copy Markdown
Member

@skylenet skylenet commented Feb 18, 2026

When multiple groups dispatch the same workflow, findWorkflowRun could assign the same GitHub run to multiple jobs or pick the wrong run.

  • Add buildClaimedRunIDs helper to track already-assigned run IDs
  • Skip claimed runs in findWorkflowRun to prevent double-assignment
  • Select oldest unclaimed run instead of newest (serialized dispatches mean the oldest unclaimed run is the correct match)
  • Acquire per-workflow lock in trackJob during run ID discovery to prevent races with the dispatch path

… a workflow

When multiple groups dispatch the same workflow, findWorkflowRun could
assign the same GitHub run to multiple jobs or pick the wrong run.

- Add buildClaimedRunIDs helper to track already-assigned run IDs
- Skip claimed runs in findWorkflowRun to prevent double-assignment
- Select oldest unclaimed run instead of newest (serialized dispatches
  mean the oldest unclaimed run is the correct match)
- Acquire per-workflow lock in trackJob during run ID discovery to
  prevent races with the dispatch path
@skylenet skylenet changed the title fix(dispatcher): prevent run ID mismatches when multiple groups share… fix(dispatcher): prevent run ID mismatches when multiple groups share a workflow Feb 18, 2026
@skylenet skylenet merged commit 491e982 into master Feb 18, 2026
5 checks passed
@skylenet skylenet deleted the fix-job-detection-ll branch February 18, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant