[Koha-bugs] [Bug 33044] BackgroundJob enqueue does not return the job id if rabbit is unreachable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 22 19:15:14 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33044

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 147178
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147178&action=edit
Bug 33044: Return job id if there is no connection to rabbit

This patch simply ensures we returnt he job id even if we don't send the
job to rabbit

To test:
1 - In KTD: sudo service rabbitmq-server stop
2 - sudo koha-worker --stop kohadev; sudo koha-worker --queue long_tasks --stop
kohadev
3 - In staff client enqueue a batch item modification - note the link to view
the enqueued job has no id in the url and takes you to the main background jobs
viewer
4 - Apply patch
5 - Restart all
6 - Enqueue a new batch item modification
7 - Confirm the link works and has the correct id

-- 
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