Back to Prefect

coiled

docs/v3/api-ref/python/prefect-infrastructure-provisioners-coiled.mdx

3.6.30.dev31.5 KB
Original Source

prefect.infrastructure.provisioners.coiled

Classes

CoiledPushProvisioner <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/coiled.py#L25" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

A infrastructure provisioner for Coiled push work pools.

Methods:

console <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/coiled.py#L34" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

python
console(self) -> Console

console <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/coiled.py#L38" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

python
console(self, value: Console) -> None

provision <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/infrastructure/provisioners/coiled.py#L135" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

python
provision(self, work_pool_name: str, base_job_template: Dict[str, Any], client: Optional['PrefectClient'] = None) -> Dict[str, Any]

Provisions resources necessary for a Coiled push work pool.

Args:

  • work_pool_name: The name of the work pool to provision resources for
  • base_job_template: The base job template to update

Returns:

  • A copy of the provided base job template with the provisioned resources