@@ -, +, @@ job --- --- --- --- --- misc/background_jobs_worker.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/misc/background_jobs_worker.pl +++ a/misc/background_jobs_worker.pl @@ -100,8 +100,8 @@ 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 received process_job( $job, $args ); - $conn->ack( { frame => $frame } ); # FIXME depending on success? } else { my $jobs = Koha::BackgroundJobs->search({ status => 'new', queue => \@queues }); --