[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 26 15:11:49 CEST 2022


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

--- Comment #20 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 140981
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140981&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