Hi. Is there any method to pass env_file to `pyfly...
# ask-the-community
m
Hi. Is there any method to pass env_file to
pyflyte run --remote
command? I was wondering if I could add
--env-file
option like
docker run
command.
s
You can add environment variables to a Flyte task: https://docs.flyte.org/projects/flytekit/en/latest/generated/flytekit.task.html. You cannot, however, send them via the pyflyte run command. Since in most cases, a Flyte task is associated with a pod, env variables need to be configured for the concerning tasks.
m
Thank you for the clarification. I was thinking it would be better if we had a handy mechanism to send env-vals to local cluster/pods during local development.
s
You can send env variables to a cluster. Here's how you can send them to the demo cluster:
flytectl demo start --env FLYTE_TIMEOUT=700
331 Views