Skip to content

fix(queue): evict failed PR_FILES jobs#128

Open
JSONbored wants to merge 1 commit into
entrius:testfrom
JSONbored:codex/das-pr-files-remove-on-fail
Open

fix(queue): evict failed PR_FILES jobs#128
JSONbored wants to merge 1 commit into
entrius:testfrom
JSONbored:codex/das-pr-files-remove-on-fail

Conversation

@JSONbored
Copy link
Copy Markdown
Contributor

Closes #124

Summary

Why

PR_FILES jobs use deterministic IDs by repo, PR number, head SHA, and base SHA. If one of those jobs exhausts retries while removeOnFail retains it in BullMQ, a later same-generation refresh can be skipped because the failed job still owns the custom ID.

This keeps pending and active jobs deduped, but lets a later webhook, backfill, or worker-side requeue enqueue a fresh files refresh after failure details have already gone to service logs.

Test plan

  • npm run format:check
  • npm run lint
  • npm run build
  • git diff --check

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Failed PR_FILES jobs can block future file refreshes

1 participant