Commit 3484af5
committed
fix(uptime): fix cron monitor incident timing inconsistency
Ensure we use the same kind of 'time' for timestamps when computing the start and end of crons open periods.
We currently use the consumer processing time for the start of an open period, but use the relay time for the close of it. In the event that a cron start is massively delayed due to backlogging, we wind up with the end coming before the start. This corrects that inconsistency by using the relay time for the open period start.1 parent fa5d13f commit 3484af5
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
| |||
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 218 | + | |
223 | 219 | | |
224 | 220 | | |
225 | 221 | | |
| |||
295 | 291 | | |
296 | 292 | | |
297 | 293 | | |
298 | | - | |
299 | | - | |
300 | 294 | | |
301 | 295 | | |
302 | 296 | | |
| |||
0 commit comments