sched: guard record_stopped_execution with proven ownership

This commit is contained in:
lda
2026-09-08 11:49:45 +07:00 Verified
parent f7533c00e5
commit b9d8eb9d16
2 changed files with 25 additions and 1 deletions
+1
View File
@@ -432,6 +432,7 @@ class Scheduler:
boundary, clears the executing mark, and records terminal history.
Never re-invokes the dispatcher.
"""
self._require_ownership()
from wf_api.run_lifecycle import persist_stopped_run
from wf_artifacts.runs.models import StoredRunStatus