> ## 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 Task • AI Agent SDK

> arun_task: Async version of run_task method

# arun\_task

<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\_task method

## Signature

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

## Parameters

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

### Returns

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

## Uses

* `display_error`
* `logger.info`
* `logger.debug`
* `aexecute_task`
* `completion_checker`
* `task.execute_callback_sync`
* `logger.error`
* `logger.exception`
* `asyncio.iscoroutinefunction`
* `asyncio.get_running_loop`

## Used By

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agents/agents.py#L748">
  `praisonaiagents/agents/agents.py` at line 748
</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>
