How severe does this issue affect your experience of using Ray?
- None: I am curious.
Hi,
I am wondering what happens when I have 2 deployments in one script and I for the sake of argument send a DB connection from one deployment to method of the other? It seems to work like pickle the DB client object, but the object is initialized on the other deployment with the defaults. Is this the case?
For example.
@deployment
class A:
def __init__(self, config, B_handle):
self.db_client = init_from(config)
self.B = B_handle
def do_work(self):
self.B.do_stuff.remote(self.db_client)
@deployment
class B:
def do_stuff(self, db_client):
...
Is it best to send objects that are pure data? Eg dataclasses, dicts, lists etc?