]> git.koha-community.org Git - koha.git/commit
Bug 31203: POC advance_notices
authorNick Clemens <nick@bywatersolutions.com>
Thu, 21 Jul 2022 12:44:40 +0000 (12:44 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 5 Oct 2022 19:12:51 +0000 (16:12 -0300)
commite68d2beaf0a2392d5d00e50a43a7154771f48a94
tree2f0b317529f6d59dbb9e812589a693cf9f022cca
parentdf69e140575608f03098d7ccdf73089d355efe65
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@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/advance_notices.pl