> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Close Run • AI Agent SDK

> close_run: Mark ``run_id`` terminal so it is no longer resumed on restart.

# close\_run

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**RunJournal**](../classes/RunJournal) class in the [**journal**](../modules/journal) module.

Mark `run_id` terminal so it is no longer resumed on restart.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def close_run(run_id: str, outcome: str) -> None
```

## Parameters

<ParamField query="run_id" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="outcome" type="str" required={false} default="'done'">
  No description available.
</ParamField>

## Uses

* `execute`
* `time.time`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/journal.py#L259">
  `praisonaiagents/runtime/journal.py` at line 259
</Card>
