[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
Mon Sep 19 00:00:57 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31203
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #137963|0 |1
is obsolete| |
--- Comment #14 from David Nind <david at davidnind.com> ---
Created attachment 140744
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140744&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 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
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list