From f2f5039ccfbfffc34b66cb016a0ae69d645c781a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 20 Feb 2020 17:22:54 +0100 Subject: [PATCH] Bug 22417: Add a note about the existence of the DB row Content-Type: text/plain; charset=utf-8 Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Cook Signed-off-by: Marcel de Rooy --- misc/background_jobs_worker.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/background_jobs_worker.pl b/misc/background_jobs_worker.pl index 9844c967a6..0127a2c2f1 100755 --- a/misc/background_jobs_worker.pl +++ b/misc/background_jobs_worker.pl @@ -39,6 +39,8 @@ while (1) { my $body = $frame->body; my $args = decode_json($body); + # FIXME This means we need to have create the DB entry before + # 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}); my $success = $job->process( $args ); -- 2.11.0