https://flyte.org logo
#flytekit
Title
# flytekit
p

Pradithya Aria Pura

03/20/2023, 7:32 AM
I am trying something a bit unconventional. Given that several task is performing modification to a
FlyteDirectory
and output the same
FlyteDirectory
. Is it possible to force all the
FlyteDirectory
to be backed by the same GCS path? Essentially sharing a directory content across tasks.
Copy code
@task
def task(work_dir: FlyteDirectory) -> FlyteDirectory:
    # do something in work_dir
    # potentially add files
    return work_dir

@workflow
def workflow():
    work_dir = init_workdir()
    work_dir = task(work_dir)
    work_dir = task(work_dir)
    work_dir = task(work_dir)
k

Ketan (kumare3)

03/20/2023, 2:16 PM
This is what will happen
Every downstream task will use the same location
p

Pradithya Aria Pura

03/21/2023, 3:25 AM
Oh you are right!
63 Views