https://prefect.io logo
Title
l

Lennart

02/28/2023, 11:29 AM
Hi, I am trying to get started with prefect cloud. I have a server that is supposed to run the jobs. I logged that server into the prefect cloud and started a task-runner. I have different flows and a few deployments. I could run all of these locally. I am now seeming to run into path issues. The deployments are created using Deployment.build_from_flow where path is
path=os.getcwd() + "/flows
and
entrypoint="flow.py:test_flow
The test flow runs the following command:
shell_run_command(
        command="python3 src/task.py", return_all=True
)
The project structure is as follows: project - flows -- depolyments.py -- flow.py - src -- task.py I run the task runner from the project root with
prefect agent start -p default-agent-pool
I applied the deployments and see them in the cloud and can start them from there. The error I get is:
can't open file /tmp/tmp6ohfe_wcprefect/src/task.py [Errno 2] No such file or directory
After exiting the process not even
/tmp/tmp6ohfe_wcprefect
exists, but I dont know if this is because prefect tears it down. Any help regarding this would be very appreciated. I hope i provided enough information to help with this. If not, let me know.