wonderful-tomato-99673
10/24/2023, 11:45 AMimport pandas as pd
from flytekit import task, workflow
@task()
def my_task()->pd.DataFrame:
return pd.DataFrame([{'a':1,'b':2}, {'a':1,'b':-1}])
@workflow
def wf():
df = my_task()
This code works just fine when we run it as pyflyte run workflows/example.py wf
in the host. The problem is that when we shell into the container and try to run the same code, the temp files don't work as they are supposed to.
The way I understand it, is that flyte should by default create the raw and sandbox temp-files in the /tmp/
directory of the container, but it only creates the sandbox
folder and instead the raw
folder is created in the same folder where the script is run under file:/
folder. So flyte creates the raw files in one folder and tries to read it from another. Weirdest thing is that this problem did occur before. We have tried with two different computers.
How can we configure the flyte inside our container to run properly? We have used different versions of Python and Flyte.
Many thanks in advance!sparse-advantage-22780
10/24/2023, 1:09 PM--destination-dir
option of pyflyte run
(default /root
)?incalculable-daybreak-13490
10/25/2023, 7:13 AM