LP1893463: Prevent duplicated report outputs user/jboyer/lp1893463_uniq_recurrence
authorJason Boyer <JBoyer@equinoxinitiative.org>
Fri, 28 Aug 2020 21:13:14 +0000 (17:13 -0400)
committerJason Boyer <JBoyer@equinoxinitiative.org>
Mon, 31 Aug 2020 20:16:36 +0000 (16:16 -0400)
commit16da64b931dc0dc8b26abdcefd47393afbb5eaf7
treee116b5e77119cba93ee1d5942cd6ed86102352cd
parentde2283ac685d948645615d5d42c1c267893f3c37
LP1893463: Prevent duplicated report outputs

When re-running recurring reports that are interrupted,
it's possible to end up with a duplicate copy of the next
recurrance of that report. This branch adds a unique index
to reporter.schedule and tells clark-kent.pl not to worry
about it.

For the purposes of this change a duplicate report is
one where report.schedule has identical values for report,
(output) folder, runner, run_time, and email.

Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Open-ILS/src/reporter/clark-kent.pl
Open-ILS/src/sql/Pg/reporter-schema.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.reporter_schedule_uniqueness.sql [new file with mode: 0644]