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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 7 Mar 2024 15:36:38 +0000 (16:36 +0100)
commit83940925685af338be659ef7baa04a40bed9d97d
treef8c44d3582c2a6b27448164940bc163ba6525133
parent0feb10df7f9473c8ccd14bea947c0957a839e059
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>
misc/workers/background_jobs_worker.pl