acoustic-carpenter-78188
01/19/2024, 7:56 PM@task(container_image=Container(image="imageFoo", working_dir="/home/foo"))
def foo():
@task(container_image=Container(image="imageBar", working_dir="/home/bar"))
def bar():
and
@task(container_image=Container(image=ImageSpec(....), working_dir="..."))
def foo():
of course it could be compatible with the old interface and still allow do specify only images if no working dir modification is needed:
@task(container_image="imageFoo")
def foo():
@task(container_image=ImageSpec(....))
def foo():
Describe alternatives you've considered
To avoid nesting, Imagespec could also have the option of working dir directly:
@task(container_image=ImageSpec(base_image="imageFoo", working_dir="/home/foo"))
def foo():
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
01/19/2024, 7:56 PM