https://prefect.io logo
j

Javier Ochoa

08/09/2023, 5:10 PM
Hello, in my prefect.yaml I am not able to set environment variables at runtime, this is my deployments section: I says $CONTEXT does not exist
Copy code
# ------------------------------------------------------------------------
# DEPLOYMENTS
# ------------------------------------------------------------------------
deployments:

- name: my_flow
  version:
  tags: []
  description:
  schedule:
  flow_name:
  entrypoint: flows/my_flow.py:main
  parameters: {}
  work_pool:
    name: "{{ $CONTEXT }}-agent"
    work_queue_name: default
    job_variables: {}
c

Christopher Boyd

08/09/2023, 11:03 PM
You would need to resolve the value separately and provide the full output there - you could add a shell run step and put the output there
4 Views