]> 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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 25 Apr 2022 20:22:17 +0000 (22:22 +0200)
commit657c8008fb1b0f4664e7d91795dd9a80e009580c
tree14a9865e5b574ff6c5b95de81874ebceddf24f2b
parent9bb65ebc5d84adea9bd046390da1c5eb13de3bb8
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>
(cherry picked from commit 40a329474486ffdef145466ddb66d65060d656ac)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit ec67db56f155a092cdb6d0b0ddce7abc9956ace0)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/BackgroundJob.pm