[Koha-bugs] [Bug 32573] background_jobs_worker.pl should ACK a message before it forks and runs the job

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 11 00:10:14 CET 2023


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

--- Comment #13 from David Cook <dcook at prosentient.com.au> ---
I was looking back at the origin of the database failover, and I think Julian
makes an interesting point at
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22417#c249

Maybe we could offer two options via configuration. Database polling or
RabbitMQ.

However, for database polling, we should try to provide at least a minimum of
similar functionality. That is to say, "misc/background_jobs_worker.pl" would
just be a worker. Instead of connecting to RabbitMQ, it could connect to our
own bespoke job server. 

That bespoke job server could use an event loop to poll the database for jobs
and check that it has workers that can accept jobs. It's not that hard to write
that code.

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


More information about the Koha-bugs mailing list