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

# Create Scheduler • AI Agents Framework

> create_scheduler: Factory function to create scheduler for different providers.

# create\_scheduler

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**scheduler**](../modules/scheduler) module.

Factory function to create scheduler for different providers.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def create_scheduler(provider: str, config: Optional[Dict[str, Any]]) -> DeploymentScheduler
```

## Parameters

<ParamField query="provider" type="str" required={false} default="'gcp'">
  Deployment provider ("gcp", "aws", "azure", etc.)
</ParamField>

<ParamField query="config" type="Optional" required={false}>
  Optional configuration dict
</ParamField>

### Returns

<ResponseField name="Returns" type="DeploymentScheduler">
  Configured DeploymentScheduler instance
</ResponseField>

## Uses

* `DeploymentScheduler`
* `logger.warning`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Background Tasks" icon="clock" href="/docs/features/background-tasks" />

  <Card title="Async Jobs" icon="list-check" href="/docs/features/async-jobs" />
</CardGroup>
