cuddly-jelly-27016
07/03/2025, 12:10 AMbt = ContainerTask(
name="basic-test",
input_data_dir="/var/inputs",
output_data_dir="/var/outputs",
inputs=kwtypes(indir=FlyteDirectory),
outputs=kwtypes(),
image="ghcr.io/flyteorg/rawcontainers-shell:v2",
command=[
"ls",
"-la",
"/var/inputs",
],
)
@task
def get_dir(dirpath: str) -> FlyteDirectory:
fd = FlyteDirectory(path=dirpath)
return fd
@workflow
def wf():
fd = get_dir(dirpath='s3://my-s3-bucket/cv-in')
bt(indir=fd)
This workflow returns an empty directory at /var/inputs according to the k8s logs despite there definitely being objects at the specified path.
### Expected behavior
I would expect the above workflow to list either /var/inputs/indir with objects copied to indir or perhaps copy them directly i.e. /var/inputs/obj1, /var/inputs/obj2 as they are named in the object store.
### Additional context to reproduce
This was run on a local sandbox via pyflyte run --remote basic_test.py wf
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
07/03/2025, 12:10 AM