Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): gracefully handle queue disconnection #3209

Merged
merged 2 commits into from Oct 3, 2023

Conversation

schoren
Copy link
Collaborator

@schoren schoren commented Oct 3, 2023

This PR improves the handling of queue disconnection. It implements a retry strategy with backoff, giving the server a chance to recover. If it cannot recover, the worker function panics causing a restart (if running on k8s or similar) or at least stop execution of a server that is not able to do any meaningful work.

Changes

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@xoscar xoscar merged commit cf0ba12 into main Oct 3, 2023
38 checks passed
@xoscar xoscar deleted the gracefully-handle-queue-disconnection branch October 3, 2023 21:40
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.

None yet

3 participants