https://prefect.io logo
Title
d

Dekel R

06/01/2022, 4:07 PM
Hey, Im getting this error when I run a new flow on Prefect cloud.
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

Kevin Kho

06/01/2022, 4:26 PM
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

Dekel R

06/02/2022, 8:22 AM
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

Kevin Kho

06/02/2022, 2:34 PM
Yeah sure DM me
w

wonsun

06/02/2022, 10:30 PM
oh.. I got the same error at my code for define the flow. Where can i adjust the 'checkpoint' parameter? @Kevin Kho
k

Kevin Kho

06/02/2022, 10:53 PM
@task(checkpoint=False)
🙏 1