]> git.koha-community.org Git - koha.git/commit
Bug 35819: nack and not requeue if frame is invalid
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 23 Jan 2024 09:14:21 +0000 (10:14 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 15:40:28 +0000 (15:40 +0000)
commit5fa868614ecb884773c7b1c5828ec7f956819208
tree6792aab35978eaf85eb6909272323c55e6bd948f
parent8dad4e970bf8aa2aed9e59d10892576225ef23fa
Bug 35819: nack and not requeue if frame is invalid

If a frame cannot be correctly processed (most probably because the body
is not valid JSON) then we are not acking or nacking the frame and the
worker is stuck.

In this specific case we should nack without requeuing the frame.

NOTE that requeue must be 'true' or 'false', not 1 or 0, or the default
'true' will be used.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 83940925685af338be659ef7baa04a40bed9d97d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 87e3d35e84dbfe4f2bc3b7b8d67bd54e38cdc64b)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/workers/background_jobs_worker.pl