https://prefect.io logo
j

Jorge Severino

09/15/2023, 1:25 PM
hello everyone! Today I started receiving this message in a stream:
Copy code
Crash detected! Execution was interrupted by an unexpected exception: TypeError: no default __reduce__ due to non-trivial __cinit__
We use Prefect Cloud, and a worker (process type) on a small machine on EC2. The only change we made was adding retries in the flow:
Copy code
@flow(name="flow_name",
       retries=3,
       retry_delay_seconds=30)
Do you know what it could be due to?
j

Jake Kaplan

09/15/2023, 1:31 PM
https://docs.prefect.io/latest/concepts/results/#persisting-results Enabling flow level retries requires (and enables) result persistence for tasks. Googling your error makes me think that you're returning something from a task that is not pickable by default. Results by default are pickled with https://docs.prefect.io/latest/concepts/results/#pickle-serializer
(I'm not 100% on this truthfully, just my best guess)