[Koha-bugs] [Bug 24968] Add Syspref controls for cronjobs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 27 23:33:50 CET 2020


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

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
(In reply to Magnus Enger from comment #4)
> Duplicate of "Bug 7972 - GUI for Crons"?

Hmm possibly. That bug seems to want to have full crontab access from the web,
especially in regards to time scheduling, which sounds terrible to me as a
vendor. But maybe I was misinterpreting the comments there.

Nick's suggestion seems to be more about just enabling/disabling and
configuring scheduled tasks, which sounds good to me. It wouldn't actually
affect cron's operation. Rather, it would affect the scripts executed by cron.
Much more reasonable.

I suppose an easy way to bolt this on would be to expand Koha::Script (or a
Koha::Script::* module). There could be an "is_enabled" function, and a
"get_script_config" function. 

(Regarding Bug 7972, you could perhaps have some config that prevents the
script from running during certain times. I think process_message_queue.pl runs
every 15 minutes, but we've hard-coded our crontab to only run between
8:00-20:00 so emails don't go out late at night. With this feature, a library
could designate their own "do not run" hours. Of course, this would only work
if the cronjob is ordinarily set to run during those "do not run" hours, if
that makes sense.)

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


More information about the Koha-bugs mailing list