[Koha-bugs] [Bug 30654] Even with RabbitMQ enabled, we should poll the database for jobs at worker startup

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 28 03:37:30 CEST 2022


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

--- Comment #9 from David Cook <dcook at prosentient.com.au> ---
After comparing the "background_jobs" table and the "minion_jobs" table, it
seems like we've got a fairly similar schema.

https://metacpan.org/release/SRI/Minion-10.25/source/lib/Minion/Backend/resources/migrations/pg.sql

I think the additions it has are:
- attempts (number of retries allowed)
- delayed (for scheduling jobs in the future although API is based off seconds
from now)
- notes (arbitrary metadata - progress is a note key that uses % values)
- parents
- priority 
- retried (time it was last retried)
- retries (number of retries attempted)
- expires
- lax (for managing parent/child dependencies)

One difference is that we use "data" whereas "minion" has two different columns
for task arguments and task result, which makes sense to me...
- args
- result

Another difference is that we track the borrowernumber. I suppose that could
arguably be part of "args", but having it in its own column where it could be
indexed makes jobs easier to manage on a per-user basis.

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


More information about the Koha-bugs mailing list