[Koha-bugs] [Bug 1993] Task Scheduler Needs Re-write

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 2 02:07:30 CET 2020


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

--- Comment #56 from David Cook <dcook at prosentient.com.au> ---
Since Koha has embraced Mojolicious, I'm thinking that I could write a
"task_scheduler.pl" (koha-scheduler) using Mojo::EventEmitter and Mojo::IOLoop
to get a reasonably good scheduler with a minimum amount of code.

Ideally, its output would be sending messages to RabbitMQ.

The real question is input and task storage. Bug 22417 gave us task storage. We
could extend that to include scheduler information. As for input... I'd say the
best solution would be communicating over a socket. Where all services are
running locally, Unix socket is the easiest. For more distributed setups, we
could make sure to use a TCP socket (we could even make it a HTTP API). 

(Looking at Minion, you can run it as a standalone job queue or leverage the
event loop in a Mojolicious application. The latter option might not work when
using Mojolicious as a PSGI application though. We do have Bug 20582 for
turning Koha into a Mojolicious application though.)

I can try to do a POC soon but can't make any guarantees...

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


More information about the Koha-bugs mailing list