> ## 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.

# Execute Once • AI Agents Framework

> execute_once: Execute agent immediately (one-time execution).

# execute\_once

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

> This is a method of the [**AgentScheduler**](../classes/AgentScheduler) class in the [**agent\_scheduler**](../modules/agent_scheduler) module.

Execute agent immediately (one-time execution).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def execute_once() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  Agent execution result
</ResponseField>

## Uses

* `logger.info`
* `execute`
* `logger.error`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/agent_scheduler.py#L304">
  `praisonai/agent_scheduler.py` at line 304
</Card>
