Since Prefect uploads supporting files to storage (I'm using LocalFileSystem, so
/tmp/
), any code that relies on relative paths is now broken. What's the best practice on this? Using absolute paths throughout? Change working directory?
Related threads: thread 1, thread 2, Github open issue 6391
✅ 1
a
Anna Geller
10/08/2022, 10:09 AM
Best practice is to use remote storage or Docker image storage, local storage is meant more for local development and single node deployment (you build on this machine and you deploy to the same machine). Prefect always executes flow run in a tmp directory and downloads code from remote storage directory but afaik it doesn't copy files into tmp for local storage
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.