From d11e7b21aaa97011c5278def20d1f587cfd594c8 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Tue, 22 Nov 2022 15:21:58 +0100 Subject: [PATCH] Bug 32305: Only process jobs in 'new' state --- 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 eb36f34f96..b1851b1c0c 100755 --- a/misc/background_jobs_worker.pl +++ b/misc/background_jobs_worker.pl @@ -96,7 +96,7 @@ 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}); - process_job( $job, $args ); + process_job( $job, $args ) if $job and $job->status eq 'new'; $conn->ack( { frame => $frame } ); # FIXME depending on success? } else { -- 2.30.2