[Koha-bugs] [Bug 22417] Delegate background jobs execution

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 20 01:51:16 CEST 2020


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

--- Comment #44 from David Cook <dcook at prosentient.com.au> ---
I've also been thinking about the separate needs for a message queue and a task
scheduler.

For instance, "Bug 1993 - Task Scheduler Needs Re-write" and an OAI-PMH
harvester would both need a task scheduler to make sure tasks run at schedule
times.

However, a Staged MARC Import doesn't need to be scheduled. It just needs to be
run ASAP in the background. (Same case for batch modifications, label creation,
and many other long-running tasks.)

That being said, for scheduled reports (like in "Bug 1993 - Task Scheduler
Needs Re-write"), the scheduled task itself might be to enqueue a message into
the message queue. (For instance, let's say 20 librarians schedule their SQL
reports to run at 6pm. At 6pm, those 20 SQL reports should be put into a queue,
and then 1+ report workers can do the work and record the results. They then
queue an email job, and emails go out with the results.)

(Arguably email processing could be a scheduled task, as you may or may not
want emails going out from the library in the middle of the night.)

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


More information about the Koha-bugs mailing list