Konstantin
08/27/2021, 6:55 AM6 August 2021,10:31:49 agent01 INFO Submitted for execution: PID: 135
26 August 2021,10:31:49 agent03 INFO Submitted for execution: PID: 140
26 August 2021,10:31:49 agent02 INFO Submitted for execution: PID: 136
26 August 2021,10:31:49 execute flow-run ERROR Failed to load and execute Flow's environment: ModuleNotFoundError("No module named '/Users/user1/'")
26 August 2021,10:31:49 execute flow-run ERROR Failed to load and execute Flow's environment: ModuleNotFoundError("No module named '/Users/user1/'")
26 August 2021,10:31:49 execute flow-run ERROR Failed to load and execute Flow's environment: ModuleNotFoundError("No module named '/Users/user1/'")
tell me where to look for the errornicholas
Konstantin
08/27/2021, 7:17 AMnicholas
Konstantin
08/27/2021, 7:40 AMlocally in the IDE 'Pycharm' my_flow.py, if you comment out the line flow.regster (), add the line flow.run () starts and runs successfully. But when I run (run with the line flow.register ()) my_flow.py on the server prefect. The scheduled launch of my flow on the server fails. The remote server is deployed under docker containers (prefect, hasura, postgres, etc.), agents on the host are also running in the container (prefect agent local start)
storage = Local(add_default_labels=False, path="~/.prefect/flows/myflow.py", stored_as_script=True)
with Flow('LoadData_inGreenPlum_fromHunterFlow', schedule, storage=storage) as flow:
Wilson Bilkovich
08/27/2021, 1:21 PMKevin Kho
Local
storage
Also, the agent might be starting in a directory that doesn’t have access to that flow. Try starting that agent in the same directory you registered from.Konstantin
08/27/2021, 2:43 PM