Basically, input variable client is not a data json but a custom class object, therefore is not appropriate to be an input or output in a task is what I figured.
How do I initialize a shared object in the workflow script to be used by all the tasks?
h
high-accountant-32689
10/21/2022, 10:29 PM
@salmon-refrigerator-32115, the original error has to do with the fact that Flyte doesn't know how to serialize
FeathrClient
, so as a last resort, we attempt to serialize the object via pickling, but
pickle
fails with that error you pasted (i.e.
TypeError: can't pickle _thread.lock objects
).
You have two options:
1. Define a type transformer for the