Frank Shen10/21/2022, 9:59 PM
Eduardo Apolinario (eapolinario)10/21/2022, 10:29 PM
, so as a last resort, we attempt to serialize the object via pickling, but
fails with that error you pasted (i.e.
). You have two options: 1. Define a type transformer for the
TypeError: can't pickle _thread.lock objects
type (follow https://docs.flyte.org/projects/cookbook/en/latest/auto/core/extend_flyte/custom_types.html#advanced-custom-types for an example) 2. Define a top-level variable.
Frank Shen10/21/2022, 11:22 PM