gentle-umbrella-41187
02/28/2024, 10:20 PMimage_config
when using pyflyte – ideally via environment variable like FLYTE_INTERNAL_IMAGE
or ~/.flyte/config.yaml
. In particular, when running
pyflyte --verbose run --remote hello-world/example.py hello_world_wf
Running example.hello_world_wf with ...
image_config=ImageConfig(default_image=Image(name='default', fqn='<http://cr.flyte.org/flyteorg/flytekit|cr.flyte.org/flyteorg/flytekit>', tag='py3.9-1.10.2'), ...
gentle-umbrella-41187
02/28/2024, 10:25 PMfrom flytekit import task, workflow
@task
def say_hello(name: str) -> str:
return f"Hello, {name}!"
@workflow
def hello_world_wf(name: str = 'world') -> str:
res = say_hello(name=name)
return res
I'd expect when FLYTE_INTERNAL_IMAGE=foo
then the above command would run using foo
as the image.
Digging into the code https://github.com/flyteorg/flytekit/blob/e394af0be9f904fbf8be675eaa8b8cdc24311ced/flytekit/configuration/__init__.py#L287-L290 it looks like FLYTE_INTERNAL_IMAGE
never gets looked at and it runs using the flyte.org image insteadgentle-umbrella-41187
02/28/2024, 10:30 PM--image
every timeproud-answer-87162
02/28/2024, 10:53 PMgentle-umbrella-41187
02/29/2024, 12:53 AMgentle-umbrella-41187
02/29/2024, 8:23 PM