fix: harden run persistence and error surfacing from code review
Snapshot store paths under lock before async runs, roll back failed start/save state, emit UI events only after successful persistence, surface log write failures, and sync stale YAML docs to JSON. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -81,8 +81,9 @@ flowchart LR
|
||||
|
||||
4. Manual run:
|
||||
`Run now` in the UI calls `Service.RunNow`. The Service checks that the job
|
||||
exists, is not already running, and that the scheduler is not globally paused,
|
||||
then executes `runner.RunJob` with the `Manual` trigger.
|
||||
exists, is not already running, and (in sequential mode) that no other job is
|
||||
running, then executes `runner.RunJob` with the `Manual` trigger. Manual runs
|
||||
are allowed even while the scheduler is globally paused.
|
||||
|
||||
5. Command execution:
|
||||
`runner.RunJob` builds the platform-specific invocation, executes the
|
||||
|
||||
Reference in New Issue
Block a user