Bugzilla – Attachment 144156 Details for
Bug 32305
Background worker doesn't check job status when received from rabbitmq
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32305: Only process jobs in 'new' state
Bug-32305-Only-process-jobs-in-new-state.patch (text/plain), 933 bytes, created by
Didier Gautheron
on 2022-11-22 14:33:40 UTC
(
hide
)
Description:
Bug 32305: Only process jobs in 'new' state
Filename:
MIME Type:
Creator:
Didier Gautheron
Created:
2022-11-22 14:33:40 UTC
Size:
933 bytes
patch
obsolete
>From d11e7b21aaa97011c5278def20d1f587cfd594c8 Mon Sep 17 00:00:00 2001 >From: Didier Gautheron <didier.gautheron@biblibre.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32305
:
144156
|
144278
|
144389
|
157256
|
157320
|
157321
|
157322
|
157496
|
157497
|
157500
|
157501