[Koha] Koha 16.05 - Holds Script - Run Frequency

Craig Butosi craig.butosi at rcmusic.ca
Thu Jan 26 11:06:56 NZDT 2017


Hi Liz,

Ah, okay. It's clearer to me now how to edit crons in the .hourly, .daily folders. I thought it might have had something do with commenting out extant entries and moving them elsewhere - thanks for clarifying! If " build_holds_queue.pl " has nothing to do with posting holds to the "Holds to Pull" page, then I won't touch it.

I had a strange report of a student placing a hold recently, but nothing appearing on the "Holds to Pull" page (we've had no problems with our hold system to date, which has been running since September). My first thought was possible lag time between the hold request itself and a holds-related script running; but, this issue may be a case where the student didn't place a hold correctly, or something else. I'll investigate further.

Many thanks,


Craig Butosi, MA, MLIS, B Mus (Hons.)
LIBRARY SERVICES MANAGER
THE ROYAL CONSERVATORY
TELUS Centre for Performance and Learning
273 Bloor Street West
Toronto, ON M5S 1W2
416.408.2824 x338
www.rcmusic.ca


-----Original Message-----
From: Koha [mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Liz Rea
Sent: January-25-17 3:53 PM
To: koha at lists.katipo.co.nz
Subject: Re: [Koha] Koha 16.05 - Holds Script - Run Frequency

Hi Craig,
The cron job is run from files are in /etc/cron.hourly/koha-common for a package install.

Note that "build_holds_queue.pl" doesn't affect the holds to pull. It only affects the hold queue.

To change the frequency, you could comment out the job in /etc/cron.hourly/koha-common, adding an octothorpe at the beginning of the job like

# koha-foreach --enabled
/usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl

and then create one in the /etc/cron.d/koha-common like

*/15 * * * * koha-foreach --enabled
/usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl

very much like the process_message_queue.pl entry. This will run the job every 15 minutes, at 00, 15, 30, and 45. To change the interval, swap out the the 15 in */15 for your desired interval.

On a recent debian(8)/ubuntu(16), you can check the cron log super easily with sudo systemctl status cron

I hope this helps!

Cheers,
Liz


On 26/01/17 04:11, Craig Butosi wrote:
> Hi all,
>
> Koha 16.05 on Ubuntu 14.04 LTS
>
> Can someone confirm the name and location of the script that controls the processing of hold requests? By 'processing' I mean when a patron clicks on "Place Hold" from the OPAC, and then that request gets entered into the "Holds to Pull" screen in the staff client. I see in directory /etc/koha/cron.hourly/ there is a script called "build_holds_queue.pl". Is this the one?
>
> If it is, then if I wanted to run it as frequently as every 15 minutes (instead of every hour), how would I go about doing that (I've never had to edit a cron in the cron.hourly folder, only in crontab)? Are there any issues will running this script more frequently than every hour? (We are a library with a user base of about 600, and with a collection of about 50,000 items; by most standards a small library).
>
> Many thanks all!
>
> Craig Butosi, MA, MLIS, B Mus (Hons.)
> LIBRARY SERVICES MANAGER
> the royal conservatory
> TELUS Centre for Performance and Learning
> 273 Bloor Street West
> Toronto, ON M5S 1W2
> 416.408.2824 x338
> www.rcmusic.ca<http://www.rcmusic.ca/>
>
>
>
> Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
> _______________________________________________
> Koha mailing list  http://koha-community.org Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha

--
--
Liz Rea
Catalyst.Net Limited
Level 6, Catalyst House,
150 Willis Street, Wellington.
P.O Box 11053, Manners Street,
Wellington 6142

GPG: B149 A443 6B01 7386 C2C7 F481 B6c2 A49D 3726 38B7




Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.


More information about the Koha mailing list