[Koha-bugs] [Bug 25245] Add a plugin hook to allow running code on a nightly basis

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 6 01:11:10 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25245

--- Comment #33 from David Cook <dcook at prosentient.com.au> ---
(In reply to Martin Renvoize from comment #32)
> You can happily gain a little more control over the scheduling within your
> plugin code by doing a date comparison as the first part of the job in your
> plugin so one could for instance set the tasks to take place ever X days
> rather than nightly, or every Friday for example.
> 

What do you think about putting the cronjob in /etc/cron.d/koha-common instead
of /etc/cron.daily/koha-common?

The former could run at very configurable time whereas the latter runs at
6:25am out of the box. 

I could see Koha sysadmins customizing /etc/cron.d/koha-common much more
readily than /etc/crontab (as you couldn't want to changethe time for all daily
cronjobs).

I think that would be a very reasonable change to make to the current patch
set?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list