Files
openclaw/src/cron
RickLin f0676a7a79 fix(cron): delete successful on-exit deleteAfterRun jobs (#104550)
* fix(cron): delete successful on-exit deleteAfterRun jobs

deleteAfterRun finalization was restricted to at schedules, so a successful
on-exit job with deleteAfterRun=true was retained as a disabled job instead
of being removed (the gateway exit watcher durably disables on-exit jobs
BEFORE firing as replay protection, and no later transition deleted them).
Successful delete-after-run now covers every one-shot schedule kind; the
pre-fire disable ordering is unchanged. Regression covers deletion on ok,
retention without the flag, and retention on failure through the same force
path the exit watcher fires.

Fixes #104518

* test(cron): prove durable on-exit finalization

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-11 16:26:43 -07:00
..