Chris Sankat
11/03/2025, 3:11 PMMarvin
11/03/2025, 3:11 PMMarvin
11/03/2025, 3:17 PMprefect work-pool get-default-base-job-template --type process
prefect work-pool get-default-base-job-template --type kubernetes --file k8s-template.json
- Template on an existing work pool:
prefect work-pool inspect <your-pool-name>
prefect work-pool inspect <your-pool-name> --output json
Programmatically (Python):
from prefect.workers.utilities import get_default_base_job_template_for_infrastructure_type
template = get_default_base_job_template_for_infrastructure_type("process") # or "docker", "kubernetes", "ecs", "azure-container-instance"
print(template)
Docs for reference:
- CLI: prefect work-pool
- Workers overview
- Python: workers utilities
Tell me the work pool type you’re using and I’ll paste the exact JSON here.