Skip to main content
Create an automation that submits a task when objects are added to storage.

Parameters

str
required
Name of the automation to create.
StorageEventTask
required
Task to run when a matching storage event occurs.
list[tuple[StorageLocation, str]] | tuple[StorageLocation, str]
required
One trigger or a list of triggers. Each trigger contains a storage location and a glob pattern.
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.