[Koha-bugs] [Bug 34470] Real Time Holds Queue - make random numbers play nice with forked processes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 3 16:30:47 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34470
--- Comment #2 from Emily Lamancusa <emily.lamancusa at montgomerycountymd.gov> ---
To replicate:
1. Apply logging patch
2. Set system preferences:
a. RealTimeHoldsQueue -> Enable
b. RandomizeHoldsQueueWeight -> in random order
3. Watch the logs for the staff interface
in ktd:
ktd --shell
koha-intra-err
4. Place a hold. Note that the logs display the branch list before and after it
is randomized.
5. Place some more holds. Note that the branch order after randomization is
identical each time.
Bonus round 1:
6. Fill in some branches (I recommend at least 8 or so) for
StaticHoldsQueueWeight
7. Place some more holds.
8. Note that the branch list before randomization is identical to the list in
StaticHoldsQueueWeight, and the list after randomization is the same each
time (but not necessarily identical to the randomized list that was produced
when StaticHoldsQueueWeight was empty).
Bonus round 2:
9. Add the following line to load_branches_to_pull_from in C4/HoldsQueue.pm:
$logger->warn(rand());
10. Place some more holds.
11. Note that rand() produces the same result each time, and the list after
randomization is still the same each time (but not necessarily identical to
the randomized list that was produced before the call to rand() was added).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list