You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4c4e37c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/automation/cron-jobs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ Cron is the Gateway's built-in scheduler. It persists jobs, wakes the agent at t
72
72
|`cron`|`--cron`| 5-field or 6-field cron expression with optional `--tz`|
73
73
|`on-exit`|`--on-exit`| Fire once when a watched command exits (event trigger; survives turn teardown; optional `--on-exit-cwd`) |
74
74
75
-
`on-exit` jobs honor `--delete-after-run`/ `--keep-after-run`the same way as successful one-shot `--at` jobs: after a successful payload run, delete when requested; otherwise keep the job disabled (the Gateway exit watcher disables the job before the payload runs so a restart cannot re-arm the watched command). Failed payload runs are never auto-deleted.
75
+
`on-exit` jobs honor successful `--delete-after-run` the same way as one-shot `--at` jobs: after a successful payload run, the job is removed when deletion was requested. The Gateway exit watcher still disables the job **before** the payload runs so a restart cannot re-arm the watched command; failed payloads and keep-after-run outcomes stay in the store (watcher-disabled when fired by the watcher). Operator-triggered force runs do not terminalize an armed `on-exit` job.
76
76
77
77
Timestamps without a timezone are treated as UTC. Add `--tz America/New_York` to interpret an offset-less `--at` datetime, or to evaluate a cron expression, in that IANA timezone. Cron expressions without `--tz` use the Gateway host timezone. `--tz` is not valid with `--every` or `--on-exit`.
0 commit comments