<@ULVA73B9P> can you share with me the base job te...
# ask-marvin
c
@Marvin can you share with me the base job template?
m
thought for 377.4 seconds
Do you want the default base job template for a specific work pool type (e.g., process, docker, kubernetes, ecs, azure-container-instance), or the template currently set on an existing work pool? Let me know the type or pool name and I can paste it here. In Prefect 3.x, you can fetch it yourself via: - Default template for a type:
Copy code
prefect 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:
Copy code
prefect work-pool inspect <your-pool-name>
prefect work-pool inspect <your-pool-name> --output json
Programmatically (Python):
Copy code
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.