Hi guys, trying to register and run a flow on the ...
# prefect-server
е
Hi guys, trying to register and run a flow on the remote perfect-server. From my laptop I run
python3 example1.py
. The .py file mentioned in this command is copied from that page. unfortunately the registered flow does not start and shows me an error
Copy code
[13 July 2021 10:52am]: Failed to load and execute Flow's environment: ModuleNotFoundError("No module named '/Users/mylocaluser/'")
anyone knows why?
1
k
Hi @Евгений Берендяев, are you running this on the same machine you registered from?
е
No, there is only one agent which is k8s agent, and I’m triggering the registered flow from the perfect-server UI (which is deployed in k8s too)
k
So when you register a flow, it gets saved to a Storage location. When the flow is run, it gets retrieved from that Storage and then executed. The default storage is
Local
storage so it will save the file locally in the
.prefect
folder in the home directory. The problem then happens when Kubernetes tries to go to that home directory address but it’s not there relative to the pod. I would try something like
S3
storage, and KubernetesRun will grab it from that bucket. You could also package the flow in a container for KubernetesRun.
👍 1