ARun09/04/2020, 3:00 PM
TypeError: cannot pickle '_thread.lock' object
ARun09/04/2020, 3:11 PM
in Prefect’s case)
Shaun Cutts09/04/2020, 3:52 PM
extends standard pickle methods, and you can wrap what you don’t want to pickle in a class with __setstate__ and __getstate__ defined, which drop or substitute for whatever content you don’t want to pickle. You could probably define these on a Task-derived class itself to customize how it is pickled.