LP1893463: Prevent duplicated report outputs
authorJason Boyer <JBoyer@equinoxinitiative.org>
Fri, 28 Aug 2020 21:13:14 +0000 (17:13 -0400)
committerKyle Huckins <khuckins@catalyte.io>
Thu, 21 Jan 2021 20:38:36 +0000 (20:38 +0000)
commit6206b361fb592b889273c9e8b1809d0d47864e87
tree6a1382f60c5ab67025070e9f51495788623c4e58
parent52e7e5b042f680024bdbd41a9c9631b8371bb3de
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>
Signed-off-by: Chris Sharp <csharp@georgialibraries.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]