<@ULVA73B9P> is there a way to download the basejo...
# ask-marvin
d
@Marvin is there a way to download the basejob template of a already configure prefect work pool?
m
To download or manage a base job template for an already configured work pool in Prefect, you can reference the CLI commands and documentation available: 1. For Prefect 2.x and 3.x, each work pool features a base job template that controls the behavior of the worker executing flow runs. This template comprises a
job_configuration
section and a
variables
section. You can use a command to update a work pool's base job template with a JSON file in the following manner:
Copy code
prefect work-pool update --base-job-template base-job-template.json my-work-pool
This command lets you version control your base job template by committing it as a JSON file to a repository and managing updates via a CI/CD pipeline. You can read more about the Prefect 2.x work pool concepts here: Prefect 2.x Work Pools Documentation. 2. In Prefect 3.x, the same concepts apply, and the documentation provides further guidance on configuring work pools. You can manage them using the Prefect UI, CLI commands, REST API, or even a Terraform provider for Prefect Cloud. More on the Prefect 3.x work pools is available here: Prefect 3.x Work Pools Documentation. I hope this helps! Feel free to ask if you have any more questions.