ARun
09/04/2020, 3:00 PMTypeError: cannot pickle '_thread.lock' object
Chris White
09/04/2020, 3:03 PMARun
09/04/2020, 3:11 PMChris White
09/04/2020, 3:19 PMcloudpickle
in Prefect’s case)Shaun Cutts
09/04/2020, 3:52 PMcloudpickle
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.