Skip to main content
Create an automation that submits a task on one or more cron schedules.

Parameters

str
required
Name of the automation to create.
CronTask
required
Task to run when the automation is triggered.
str | list[str]
required
Cron schedule or schedules that trigger the automation.
ClusterSlugLike | None
Cluster to run the task on. If not provided, the default cluster is used.
int
Maximum number of retries for the task. Defaults to 0.

Returns

The created automation prototype.