https://prefect.io logo
y

Yusuf Khan

01/17/2022, 11:03 PM
I have a task failing with following error: Unexpected error: ValueError('ctypes objects containing pointers cannot be pickled') Before making this a prefect flow script it was executing fine. Its a small script running on a rasberry pi using the PiCamera module. There are other non-dependent tasks that are working alright. Any thoughts from anyone? Googling this didn't yield much
1
k

Kevin Kho

01/17/2022, 11:10 PM
Hey @Yusuf Khan, I think this is because Prefect checkpoints task outputs and serializes them by default. You might be able to fix this with:
Copy code
@task(checkpoint=False)
def ...
    ....
🙏 1
y

Yusuf Khan

01/17/2022, 11:14 PM
yesss thank you!
5 Views