Hey, Im getting this error when I run a new flow o...
# prefect-community
d
Hey, Im getting this error when I run a new flow on Prefect cloud.
Copy code
Unexpected error: TypeError("cannot pickle '_thread.lock' object")
I used is_serializable before registering the flow and got True. Any ideas on how to tackle this? Thx
k
This is something like you are returning an object in a task that can’t be serialized. You can test using
cloudpickle.dumps(obj)
to test it. You can also turn off
checkpointing
with
checkpoint=False
in the task
d
Yeah I’m familiar with this error - just not sure if thats the case here. Can I share some code privately so you can take another look?
k
Yeah sure DM me
w
oh.. I got the same error at my code for define the flow. Where can i adjust the 'checkpoint' parameter? @Kevin Kho
k
Copy code
@task(checkpoint=False)
🙏 1