-
Notifications
You must be signed in to change notification settings - Fork 56
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
procrastinate_fetch_job
can end up being slow
#1242
Comments
Woah, someone with the same name (pretty much) as me has already raised the issue I was about to raise? Re: the PR, why is it necessary to make the change in |
Welcome to the club of Btw, as the repo maintainer, I opened the issue tracking the discussion but @TheNeedForSleep is the one deserving praise for this. Feel free to chime in in the PR rather than here, the author is more likely to react. As to myself, I'm sorry but I was much to busy lately to start evaluating this. That said, thank you for your interest and welcome around ! |
If two or more workers fetch a job with the same lock one of them will have a unique constraint violation on the update part. If the worker still fails to get a job it will just get a job where no unique constraint violation can occur e.g. a job without a lock. |
Following discussion from Discord starting here and below, it seems we could vastly improve the performance of
procrastinate_fetch_job
.The following query plan was posted.
The text was updated successfully, but these errors were encountered: