Skip to content

fix(webhook): requeue failed PR metadata jobs#76

Open
volcano303 wants to merge 1 commit into
entrius:testfrom
volcano303:fix/pr-metadata-failed-requeue
Open

fix(webhook): requeue failed PR metadata jobs#76
volcano303 wants to merge 1 commit into
entrius:testfrom
volcano303:fix/pr-metadata-failed-requeue

Conversation

@volcano303
Copy link
Copy Markdown
Contributor

Summary

Retained failed fetch-pr-metadata jobs can block later PR metadata refreshes because the handler reuses the same BullMQ custom job id for each PR while keeping failed jobs with removeOnFail: 50.

This change removes a retained failed metadata job before adding the fresh job for a later PR webhook. Pending and active metadata jobs still deduplicate by the same stable job id.

Related Issues

Fixes #75

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

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

Checklist

  • I have read the Contributing Guide
  • Code builds without errors
  • New and existing tests pass (if applicable)
  • Documentation updated (if applicable)
  • No unnecessary dependencies added

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 13, 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 metadata jobs can block future metadata refreshes

1 participant