]> git.koha-community.org Git - koha.git/commit
Bug 30172: Prevent race condition when enqueuing a new task
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 24 Feb 2022 09:41:16 +0000 (10:41 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 15 Apr 2022 16:00:34 +0000 (12:00 -0400)
commit40a329474486ffdef145466ddb66d65060d656ac
treea5ddd5b08bb6c8ca82095c1de714039a453f7b83
parentf260ee5c3736dd69dedddd195aee3f5a4c796ae5
Bug 30172: Prevent race condition when enqueuing a new task

As we are sending the job to the rabbitmq before in the transaction, the
worker can receive the job to process before the transaction committed.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/BackgroundJob.pm
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt