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

Worker stops working if same singleton key exists in retry & created state an batch size > 1 #535

Open
klesgidis opened this issue Jan 14, 2025 · 1 comment

Comments

@klesgidis
Copy link
Contributor

Steps to repro

  • You should have a stately queue
  • You should have batch_size > 1
  • 2 jobs with the same singleton key, one in created and another one in retry states

In the above case the fetch query here will fetch both jobs and attempt to mark them as active. This causes the db to fail with UniqueKeyViolationError since both jobs have the same singleton key. In this situation the worker won't fetch messages forever

@timgit
Copy link
Owner

timgit commented Jan 26, 2025

I added a comment to the PR.

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

No branches or pull requests

2 participants