Italo Barros
08/16/2021, 2:39 PMKevin Kho
Italo Barros
08/16/2021, 2:55 PMKevin Kho
Italo Barros
08/16/2021, 3:09 PMItalo Barros
08/16/2021, 5:48 PMKevin Kho
DaskExecutor
, it’s better to create that Client inside the task because functions and objects are shipped to Dask workers by serializing them with cloudpickle
. Client objects and connections normally cannot be serialized.
If you are running everything on local, then it might work, but you will get an error when serializing the flow upon registration. You need to store for Flow as a script. See this for more details. This will execute the Flow when the script is downloaded.
In general, to make this work with serialization, create the connection inside the task