https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34070
--- Comment #20 from David Cook <[email protected]> --- Created attachment 179025 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179025&action=edit Bug 34070: Add error handling for ERROR frames for background worker This change adds error handling for ERROR frames to background_jobs_worker.pl. A previous patch added it to es_indexer_daemon.pl which is a different background jobs worker. To test ERROR handling for background_jobs_worker.pl: 1. Change your RabbitMQ connection details in koha-conf.xml or the hard-coded ones in Koha/BackgroundJob.pm to include an invalid password. For example, if you don't have a message_broker already defined, use the following: <message_broker> <password>bad</password> </message_broker> 2. sudo koha-worker --restart --quiet kohadev 3. View the errors in the logs: tail -f /var/log/koha/kohadev/worker-output.log tail -f /var/log/koha/kohadev/worker-error.log To test MESSAGE handling for background_jobs_worker.pl: 1. Ensure RabbitMQ connection details are correct 2. Go to Batch item modification and add the following barcodes: 39999000001310 39999000004571 3. Add a z - Public Note of the following and click Save: THEBACKGROUNDWORKERWORKED 4. Search the catalogue using THEBACKGROUNDWORKERWORKED in the top catalogue search 5. Note that you get 2 results in your search 6. Look in the logs just to make sure there are no new messages there -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
