Register_serializer using Cluster

I am unclear how to register custom serializers when using ray cluster. The docs say that serializers are managed locally for each worker. When using the Kubernetes operator to launch workers how do I register the custom serializers when the workers are launched? In addition when I try and call register_serializer on the client after calling ray.client(f’{LOCAL_PORT}’).connect() I get

Traceback (most recent call last):
  File "xxx/ts/ray/", line 17, in <module>
  File "xxx/ts/enamine/", line 63, in register_custom_serializers
    ray.util.register_serializer(oegraphsim.OEFingerPrint, serializer=oefingerprint_serializer, deserializer=oefingerprint_deserializer)
  File "xxx/venv/lib/python3.8/site-packages/ray/util/", line 18, in register_serializer
    context = ray.worker.global_worker.get_serialization_context()
  File "xxx/venv/lib/python3.8/site-packages/ray/", line 209, in get_serialization_context
    with self.lock:
AttributeError: 'Worker' object has no attribute 'lock'

Have you tried Serialization — Ray v2.0.0.dev0?