https://prefect.io logo
s

shijas km

01/27/2022, 3:37 PM
Hi I am facing an issue I have created an extraction flow and run it locally , its working fine, this program contains one task and inside this task its calling another function from different python module for ex import abc @task def fun() abc.fun1() assume like above , its working in local but when i register the flow in cloud its failed saying abc not found how can we resolve this should I write all the logic inside task function itself ??
k

Kevin Kho

01/27/2022, 3:39 PM
Are you still running locally? Or running on a different machine? You need to have these modules available in the execution environment
s

shijas km

01/27/2022, 3:42 PM
hi this is in aws ec2 machine , and all these modules are available in this machine in the same folder itself when I run the prefect flow locally its running fine the issue is when i set the backend to cloud and and trying to run it in cloud it shows that this module not dfound should I mention the local file path somehere when we start the agent ?
k

Kevin Kho

01/27/2022, 3:44 PM
You can set a working directory that has access to the module. Check this
2 Views