mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 10:14:51 +00:00
fix(sqlite): add missing doc comment for stale running job reset
This commit is contained in:
1 parent
3703355b56
commit
bff89b0b3c
1 file changed
+1
@@ -70,6 +70,7 @@ func (s *SQLiteCronStore) InvalidateCache() {
|
||||
}
|
||||
|
||||
// recomputeStaleJobs fixes enabled jobs on startup:
|
||||
// - Resets any jobs stuck in 'running' state from a previous crash.
|
||||
// - Recomputes next_run_at for jobs where it is NULL (crashed mid-execution).
|
||||
// - Advances past-due jobs (next_run_at < now) to their next future run time,
|
||||
// preventing a flood of all missed jobs firing simultaneously after downtime.
|
||||
|
||||
Reference in new issue
Block a user