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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 5 04:37:34 CEST 2020


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

--- Comment #53 from David Cook <dcook at prosentient.com.au> ---
At the moment, I'm writing a new task scheduler in Golang for a plugin version
of Bug 10662. Like the existing Perl version attached to Bug 10662, it closely
couples the task scheduler and OAI-PMH harvester. In the Golang case, when the
timer fires, a new thread is created to do a HTTP download of XML (which
actually pipes the XML stream into another thread with a XML stream reader in
it which concurrently parses and writes away the downloaded records). I am
planning to give each task a thread to take those downloaded records and import
them into Koha (via a Plugin API). But if I were to use a more generalized task
scheduler... I'm not sure how I'd do it. If we did have a message queue,
perhaps the download task would send the records to an API which would record
them and then enqueue a RabbitMQ message to an import worker.

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


More information about the Koha-bugs mailing list