Hi All, I’m using <https://cloud.prefect.io/>, mee...
# ask-community
b
Hi All, I’m using https://cloud.prefect.io/, meet some issues, pls help add ‘1’ in sys path as ‘2’ use some libs under ‘1’ this works fine when I use flow.run(); but when I use flow.register(), the agent(already restart) meet this: It looks like the agent not understand sys.path added.
1
and to register your flows, much easier is to separate them out into separate files and then use the CLI to register like so:
Copy code
prefect register --project yourproject -p yourflows/
it will register all flows under the directory
yourflows
b
Hi @Anna Geller, thanks for your reply. Fixed it by adding ‘environment=PYTHONPATH=xxx’ in supervisord.
🙌 1