Hello, in my prefect.yaml I am not able to set env...
# ask-community
j
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
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