[Koha-bugs] [Bug 31203] Cronjobs should log completion as well as logging begin
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 21 14:48:57 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31203
--- Comment #3 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 137961
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=137961&action=edit
Bug 31203: POC advance_notices
This patch proposes a new standard for cronlogaction
We copy @ARGV into a space separated string, then pass this and the PID to
cronlogaction
At the end of the script we add a call with info "COMPLETED"
To test:
1 - Apply patch
2 - perl misc/cronjobs/advance_notices.pl -v -m 4 -n -c
3 - sudo koha-mysql kohadev
4 - SELECT * FROM action_logs WHERE interface="CRON";
5 - Note start and completion logged
6 - Note command line arguments included in info
If this looks good I will copy this pattern to the other cronjobs
--
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