Mike Larsson
06/09/2022, 8:39 PMKevin Kho
06/09/2022, 8:40 PMMike Larsson
06/09/2022, 8:41 PMKevin Kho
06/09/2022, 8:43 PMprefect agent something start --env IDENTIFIER=value_here
and then in the Flow, you have access to that env variable
import os
@task
def mytask
os.environ["IDENTIFIER"]
Mike Larsson
06/09/2022, 8:43 PM--env
Kevin Kho
06/09/2022, 8:44 PMMike Larsson
06/09/2022, 8:44 PM--task_definition
but that's not available to the flow, right?Kevin Kho
06/09/2022, 8:45 PMMike Larsson
06/09/2022, 8:45 PMKevin Kho
06/09/2022, 8:46 PM- name: PREFECT__CLOUD__AGENT__ENV_VARS
value: '{"test": "test2"}'