Commit 70ae80b
fix: address reviewer feedback — next_run_time, null guards, stale closure
P1: _compute_next_run_time added remaining to reference (last_run_at)
instead of now, giving wrong results for interval jobs. Fixed to
use timezone.now() + remaining. Added logger.debug on failure.
P1: getTooltipText crashed when a job had no linked periodic task.
Guarded with optional chaining on periodic_task_details.
P2: Auto-expand useEffect used JobHistoryData as dep, resetting
user-expanded rows on every filter change. Switched to backUpData
so it only fires on fresh data loads.
P2: handleJobChange useCallback was missing getRunHistoryList in its
dependency array, risking stale closure. Added to deps.
Nit: Added RUNNING key to STATUS_META so backends that send RUNNING
instead of STARTED render correctly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7fa355b commit 70ae80b
2 files changed
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
209 | | - | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
386 | 395 | | |
387 | 396 | | |
388 | 397 | | |
| |||
401 | 410 | | |
402 | 411 | | |
403 | 412 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
| |||
0 commit comments