[Koha-bugs] [Bug 32305] Background worker doesn't check job status when received from rabbitmq
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 18 16:25:03 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32305
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #157256|0 |1
is obsolete| |
Attachment #157320|0 |1
is obsolete| |
--- Comment #24 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 157321
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157321&action=edit
Bug 32305: Worker should ignore wrong status or queue in MQ mode
MQ mode: The worker has seen that MQ is running and consumes messages
instead of polling db only.
Test plan:
Stop worker for long tasks.
Make sure that Rabbit MQ runs.
Stage a file. (This adds a long task.)
Goto staff view of jobs and cancel this job.
Check if job is still in MQ with rabbitmqctl list_queues.
Now start worker for long tasks.
Check if job is gone in MQ with rabbitmqctl list_queues.
And check logfile for the adjusted warning like:
[WARN] Job 5 not found, or has wrong status/queue main::
/usr/share/koha/misc/workers/background_jobs_worker.pl (134)
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list