Clark creates duplicate reports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
This has always been a bug in Evergreen so I wanted to get it documented.
The clark-kent.pl process is responsible for updating and creating the reporter.schedule entries.
If the report is recurring, Clark will create the next running of the report in the schedule at the time it runs the report. If the report is disrupted and doesn't finish. (Clark goes down, or is restarted) then when clark goes to run the report again it will create a 2nd schedule entry for the next recurring time.
If this happens more than ones, than clark can technically keep duplicating all the duplicates, and I've seen cases where someone has over 100 duplicate reports running each day due to this.
I think somehow clark should be made a little smarter and only create a recurring report entry if one doesn't already exist for that report.
This bug is a duplicate of bug 1893463 and fortunately I have a branch available there to address it. :)