[Koha-bugs] [Bug 35819] "No job found" error for BatchUpdateBiblioHoldsQueue (race condition)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 16 16:38:51 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35819
--- Comment #2 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 161067
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161067&action=edit
Bug 35819: Retry to fetch job if does not enqueued yet
If a job has been enqueued in the middle of a txn, the worker will fetch
the job but fail because it's not in the DB yet.
The uglier but most effective (as a quick fix and easily backportable
fix) is to... wait a bit.
This patch suggests to sleep 1sec and retry, 10 times.
It should be enough for the majority of the jobs.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list