https://prefect.io logo
f

Farhood Etaati

07/10/2023, 8:49 AM
Hi. How can I pass a
job_variables
object to a deployment object in python? The docs only talk about
yaml
and
cli
configurations for
work-pool
and base job templating.
1
Apparently this is done via
infra_overrides
argument in
Deployment
constructor. I think this is rather very confusing and undocumented behavior. This needs its own argument or rather a
DeploymentConfig
struct is needed.
j

Jeff Hale

07/10/2023, 12:11 PM
The newish
prefect.yaml
deployment configuration file has a
job_variables
section that is the recommended way to set configuration. Read more here. This isn’t a Python-based method. Thank you for the feedback on the Python-based deployment documentation.