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

# Arun All Tasks • AI Agent SDK

> arun_all_tasks: Async version of run_all_tasks method

# arun\_all\_tasks

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

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

Async version of run\_all\_tasks method

## Signature

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

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `Process`
* `process.aworkflow`
* `arun_task`
* `asyncio.gather`
* `asyncio.get_running_loop`
* `loop.run_in_executor`
* `copy_context_to_callable`
* `run_task`
* `process.asequential`
* `flush_async_tasks`

## Used By

* [`AgentTeam.astart`](../functions/AgentTeam-astart)

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tasks Concept" icon="list-check" href="/docs/concepts/tasks" />

  <Card title="Task Configuration" icon="gear" href="/docs/configuration/task-config" />

  <Card title="Task Validation" icon="check-double" href="/docs/features/task-validation-feedback" />
</CardGroup>
