John O'Farrell
05/18/2022, 6:14 PMprefect.Client
api to run the task and it threw an error Failed to load and execute flow run: TypeError("'ABCMeta' object is not subscriptable")
. Now any subsequent attempt to run the flow using the prefect ui throws the same error, even though the code hasn't changed.Kevin Kho
05/18/2022, 6:15 PMprefect.Client
?John O'Farrell
05/18/2022, 6:29 PMclient = prefect.Client(api_key='{key}')
client.create_flow_run(flow_id='{flow_id}')
Kevin Kho
05/18/2022, 6:32 PMJohn O'Farrell
05/18/2022, 6:35 PM[2022-05-18 18:32:36,501] INFO - agent | Deploying flow run {flow} to execution environment...
INFO:agent:Deploying flow run {flow} to execution environment...
[2022-05-18 18:32:36,717] INFO - agent | Completed deployment of flow run {flow}
INFO:agent:Completed deployment of flow run {flow}
[2022-05-18 18:33:07,669] INFO - agent | Process PID 15752 returned non-zero exit code 1!
INFO:agent:Process PID 15752 returned non-zero exit code 1!
But what I think might be the problem is that I'm realizing now that it doesn\.prefect\flows
when I register it nowKevin Kho
05/18/2022, 6:37 PM--force
flag to force the registrationJohn O'Farrell
05/18/2022, 6:38 PMKevin Kho
05/18/2022, 6:40 PMJohn O'Farrell
05/18/2022, 6:42 PMflow.storage = Local(path='<http://src.app|src.app>', stored_as_script=True) flow.register(project_name="ingestion-pipeline")
Kevin Kho
05/18/2022, 6:44 PM.prefect
folder anymore. You path should be the Python file though<http://src.app|src.app>
a module or folder?John O'Farrell
05/18/2022, 6:45 PMKevin Kho
05/18/2022, 6:46 PMJohn O'Farrell
05/18/2022, 6:49 PMcannot pickle '_thread.lock' object
. That's why I had been using local stoage and making sure it knows it's stored as a scriptKevin Kho
05/18/2022, 6:53 PMJohn O'Farrell
05/18/2022, 7:05 PM\.prefect\flows
only supposed to be used if stored_as_script=False
Kevin Kho
05/18/2022, 7:07 PM