Hi!
I’m trying to run a flow locally with a prefect server. I have the server running as well as a local agent. When I run
flow.run()
, it errors out with this message:
Copy code
TypeError: can't pickle _thread.lock objects
Note: I’m running the flow through a build system (bazel)
k
Kevin Kho
05/27/2022, 2:29 PM
You are likely returning something that cant be pickled from a task like a connection. If you use DaskExecutor, Dask passes things to workers by pickling them
s
Shriram Holla
05/27/2022, 2:43 PM
That’s weird. I’m not really passing or returning anything from any task. Does this include function calls within the task too?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.