Skip to content

Conversation

@alexcottner
Copy link
Contributor

@alexcottner alexcottner commented Apr 10, 2024

This PR aims to finish the retry queue work by adding logic to the bugzilla_webhook route

  • Adds queue logic to the bugzilla webhook route
  • Adds additional unit tests to cover branches
  • Adds well formed logs for easy alerting

Much of this was copied from @leplatrem 's draft PR here.

@alexcottner alexcottner added the enhancement New feature or request label Apr 10, 2024
@alexcottner alexcottner changed the title WIP - Adding queue to bugzilla webhook route Adding queue to bugzilla webhook route Apr 10, 2024
@alexcottner alexcottner marked this pull request as ready for review April 10, 2024 21:27
@alexcottner alexcottner requested a review from a team as a code owner April 10, 2024 21:27
Copy link
Contributor

@leplatrem leplatrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say that we should let the queue crash, and let fastapi return a 500 and send a sentry, instead of catching all exceptions and reraising a httperror manually

@alexcottner alexcottner merged commit 224e554 into main Apr 17, 2024
@alexcottner alexcottner deleted the webhook-queue branch April 17, 2024 16:01
@mozilla mozilla deleted a comment from sentry bot Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants