]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 14:23:46 +0000 (16:23 +0200)
commit7585db29c08078d2b85faf27d110c4598e03881d
treec0bea8896cf749d5f734ce3494b5406506de31c3
parent24d1b4edd9301220e101a5209df1f4956272230a
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>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/BackgroundJob.pm
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt