Interrupted Runs • AI Agent SDK
interrupted_runs: Return ids of runs still “running“ — resume candidates on restart.
interrupted_runs
Method
</div>
This is a method of the RunJournal class in the journal module.
Return ids of runs still `running` — resume candidates on restart.
A run left `running belonged to a process that exited without recording a terminal outcome. Nothing resumes these automatically; callers resume one turn with ExecutionConfig(durable=True, resume_run_id=..., journal_path=...) (same journal) and the run's recorded task` as the prompt.
Signature
def interrupted_runs() -> List[str]Returns
ResponseField
List[str]The result of the operation.
Uses
fetchallexecute
Source
View on GitHubpraisonaiagents/runtime/journal.py at line 308