[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
Tue Oct 4 17:01:23 CEST 2022


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #140981|0                           |1
        is obsolete|                            |

--- Comment #35 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 141312
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=141312&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>

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

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


More information about the Koha-bugs mailing list