[Koha-bugs] [Bug 15032] [Plack] Scripts that fork (like stage-marc-import.pl) don't work as expected

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 24 03:03:11 CEST 2018


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #25 from David Cook <dcook at prosentient.com.au> ---
I figure one way or another we need to have a solid solution for background
processing of tasks.

I'm running into a related issue with someone trying to do
batch_record_modification.pl with a large number of records, but there are a
million other use cases that require it.

We've been talking about this issue for years, and I'm wondering if this is
something where plugins might be useful. 

Tomas suggested an approach to me at Kohacon where Koha has a default built-in
functionality, but then lets you use plugins to override that built-in
functionality.

Maybe we could make the hooks a "developer feature"? So the hook is only run in
"developer mode", but that lets many developers write their own plugins to try
and find something that works? And maybe the best plugin gets adopted by Koha
to replace the default functionality, which I'm sure we all agree is not good
enough right now.

I wrote my own job server using POE::Component::JobQueue for #10662 and it
works pretty well, but I'm sure it could be better. But I'd be happy to
contribute a plugin for people to try out. I can't guarantee it would be the
best solution, but it would be "a" solution. (With 10662, the job server runs
as a standalone daemon process, and Koha, whether CGI or PSGI, connects to the
daemon using a UNIX socket and uses JSON messages for talking about jobs.)
There are lots of other options out there. I think Minion might be a good one
since it's within the Mojolicious family. I was thinking of using it, but I
think I didn't as it wasn't interactive enough for my purposes, but... I figure
we should try out some things rather than just be in discussion forever?

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


More information about the Koha-bugs mailing list