Bugzilla – Attachment 161173 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.24 KB, created by
Marcel de Rooy
on 2024-01-19 08:35:54 UTC
(
hide
)
Description:
Bug 35819: Add simple delay
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-01-19 08:35:54 UTC
Size:
1.24 KB
patch
obsolete
>From ef609cec8b1070ea88b7103e94599a79974d098b 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 >Content-Type: text/plain; charset=utf-8 > >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> >--- > 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 49ad2e57e3..3b90827c55 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.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 35819
:
161067
|
161071
|
161139
|
161172
|
161173
|
161267
|
161527
|
161624
|
161682
|
161683
|
161684
|
161685
|
161686
|
161752
|
161753
|
161754
|
161755
|
161756
|
161757