From ed14d89f79407d62a53486a4d0b22d14eb8c4b94 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Thu, 5 Jan 2023 09:22:25 -0500 Subject: [PATCH] Bug 32558: (follow-up) Ack the stomp message before forking --- misc/background_jobs_worker.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/background_jobs_worker.pl b/misc/background_jobs_worker.pl index a9e14fc94c..0120146a71 100755 --- a/misc/background_jobs_worker.pl +++ b/misc/background_jobs_worker.pl @@ -107,9 +107,9 @@ while (1) { # It could work in a first step, but then we will want to handle job that will be created from the message received my $job = Koha::BackgroundJobs->find($args->{job_id}); + $conn->ack( { frame => $frame } ); # Acknowledge the message was recieved $pm->start and next; $job->process( { job_id => $job->id, %$args } ); - $conn->ack( { frame => $frame } ); # FIXME depending on success? $pm->finish; } else { -- 2.30.2