Hi :wave: When the using the new push work pool wi...
# ask-community
y
Hi đź‘‹ When the using the new push work pool with the prefect.yaml, I can use the job_variables to add custom env config like so:
âś… 1
This works, but it overrides other env vars I’ve set in the cloud UI, and they are not available in runtime:
Is there a way to use the job_variables property to add new env vars, but still keep the ones added via the UI?
Thanks
j
hey, prefect variables (the ones you’re setting in the ui) should be accessible no matter what during runtime (
from prefect import variables, variables.get()
). Theyre dynamically pulled during runtime from the server. They shouldn’t have any impact on the “env” field under job variables, which are the environment variables to be loaded into your container. You can include prefect variables in your job variables as a templated value as well if that is helpful.
Copy code
job_variables:
   env:
     MY_REGULAR_ENV_VAR: "abc"
     MY_PREFECT_VAR_ENV_VAR: "{{ prefect.variables.my_variable }}"
y
ok let double check it….
ah ok
🙌 1