engine: ephemeral job status lost on directory deletion #117

Closed
opened 2026-07-05 15:42:31 +00:00 by the.auditor · 0 comments
Owner

For ephemeral jobs in src/kronai/engine.py:120-121, save_status() is called before shutil.rmtree(job.path). The status file is written then immediately deleted with the directory.

If status persistence for ephemeral runs matters, consider skipping the write for ephemeral jobs or writing to a separate global store.

From PR #114 review suggestion.

For ephemeral jobs in `src/kronai/engine.py:120-121`, `save_status()` is called before `shutil.rmtree(job.path)`. The status file is written then immediately deleted with the directory. If status persistence for ephemeral runs matters, consider skipping the write for ephemeral jobs or writing to a separate global store. _From PR #114 review suggestion._
fuzzy closed this issue 2026-07-05 17:59:53 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai#117
No description provided.