Kyler Suden
01/28/2025, 9:03 PM<s3://tps-prefect/storage/>
My block definition for my flow reflects this in the first image I am attaching. I then execute the following deployment command
prefect deployment build -sb "s3-bucket/ice-harvester-block" -n "ice-harvester-flow-prod" -q "default" "flow.py:ice_harvester_flow"
This works as I would expect, and all my flow code gets uploaded to the path
<s3://tps-prefect/storage/ice-harvester-flow/>
however, when I run the deployment, I am getting the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/app/flow.py'
Where is the "app" coming from? I am assuming it is the name of the folder prefect creates in my docker to store my code, which is fine. But if this is the case then if the deployment is pulling code based on my block path, then flow.py should be in app, since it is in the blocks defined path mentioned above. I am confused of how this works. If the deployment uses the block info to write correctly, how is it using the same block and reading the info incorrectly? Does anyone know why this behavior is occurring?Kyler Suden
01/28/2025, 11:38 PM