Mike Larsson
06/09/2022, 8:39 PMKevin Kho
Mike Larsson
06/09/2022, 8:41 PMKevin Kho
prefect 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
Mike Larsson
06/09/2022, 8:44 PM--task_definition
but that's not available to the flow, right?Kevin Kho
Mike Larsson
06/09/2022, 8:45 PMKevin Kho
- name: PREFECT__CLOUD__AGENT__ENV_VARS
value: '{"test": "test2"}'