prefect.infrastructure.provisioners

Functions

get_infrastructure_provisioner_for_work_pool_type

get_infrastructure_provisioner_for_work_pool_type(work_pool_type: str) -> Type[Provisioner]
Retrieve an instance of the infrastructure provisioner for the given work pool type. Args:
  • work_pool_type: the work pool type
Returns:
  • an instance of the infrastructure provisioner for the given work pool type
Raises:
  • ValueError: if the work pool type is not supported

Classes

Provisioner

Methods:

console

console(self) -> rich.console.Console

console

console(self, value: rich.console.Console) -> None

provision

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