Bug 12924 - Replay advance_notices.pl-cronjob in history
Summary: Replay advance_notices.pl-cronjob in history
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Olli-Antti Kivilahti
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 15:27 UTC by Olli-Antti Kivilahti
Modified: 2014-11-25 16:06 UTC (History)
1 user (show)

See Also:
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 (9.25 KB, patch)
2014-09-15 15:27 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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).