https://prefect.io logo
Title
b

bin zhang

07/22/2022, 3:56 AM
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:
prefect register --project yourproject -p yourflows/
it will register all flows under the directory
yourflows
b

bin zhang

07/25/2022, 9:31 AM
Hi @Anna Geller, thanks for your reply. Fixed it by adding ‘environment=PYTHONPATH=xxx’ in supervisord.
🙌 1