[Koha-bugs] [Bug 33044] New: 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:08:21 CET 2023


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

            Bug ID: 33044
           Summary: BackgroundJob enqueue does not return the job id if
                    rabbit is unreachable
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

Some sites elect to use the worker without rabbit

This largely works, however, when a job is enqueued we don't return the job_id
unless our connection was successful - this leads to the enqueued result page
not providing a correct link, even though the job will be processed by DB
polling

To recreate:
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list