Bug 12924

Summary: Replay advance_notices.pl-cronjob in history
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: NoticesAssignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12923
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11120
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 12924 - Replay advance_notices.pl-cronjob in history

Description Olli-Antti Kivilahti 2014-09-15 15:27:07 UTC
If for some reason the advance_notices.pl script fails to run/crashes.
It is very handy to be able to run it in a previous point in time.
This feature improves the cronjob so we can run it any day in the past or future.

This patch also introduces an exclusion feature to not run some day-differences.
For ex. If the cronjob failed yesterday, and today the DUE-message is already generated, there is no point in generating PREDUE-messages from yesterday for those issues that expired and got notified today.

If the cronjob failed many days ago playing with the exclusion days a bit trickier and requires careful testing, but it helps repair damage from unrealiable cronjobs.
Comment 1 Olli-Antti Kivilahti 2014-09-15 15:27:36 UTC
Created attachment 31616 [details] [review]
Bug 12924 - Replay advance_notices.pl-cronjob in history
Comment 2 Jonathan Druart 2014-11-25 16:06:12 UTC
Same idea as bug 11120 (for overdue_notices.pl).