Bugzilla – Attachment 161683 Details for
Bug 35819
"No job found" error for BatchUpdateBiblioHoldsQueue (race condition)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35819: Add simple delay
Bug-35819-Add-simple-delay.patch (text/plain), 1.25 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-01-31 13:41:36 UTC
(
hide
)
Description:
Bug 35819: Add simple delay
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-01-31 13:41:36 UTC
Size:
1.25 KB
patch
obsolete
>From e79d70f84424ab1cc2d09b1694bfc09d79cbd6ae Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 19 Jan 2024 07:10:02 +0000 >Subject: [PATCH] Bug 35819: Add simple delay > >Here I add 500 ms. In my testing with the 1s sleep from the test >plan, I might see one or two 'not found' lines. Obviously things >depend on the time needed before the txn commits. But it will >reduce a flood of these messages. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > misc/workers/background_jobs_worker.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/misc/workers/background_jobs_worker.pl b/misc/workers/background_jobs_worker.pl >index 49ad2e57e34..3b90827c559 100755 >--- a/misc/workers/background_jobs_worker.pl >+++ b/misc/workers/background_jobs_worker.pl >@@ -58,6 +58,7 @@ use Try::Tiny; > use Pod::Usage; > use Getopt::Long; > use Parallel::ForkManager; >+use Time::HiRes; > > use C4::Context; > use Koha::Logger; >@@ -133,6 +134,7 @@ while (1) { > > # nack to force requeue > $conn->nack( { frame => $frame, requeue => 1 } ); >+ Time::HiRes::sleep(0.5); > next; > } > $conn->ack( { frame => $frame } ); >-- >2.43.0
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 35819
:
161067
|
161071
|
161139
|
161172
|
161173
|
161267
|
161527
|
161624
|
161682
|
161683
|
161684
|
161685
|
161686
|
161752
|
161753
|
161754
|
161755
|
161756
|
161757