[serve] Call serve.init() before initializing backends (#7922)

This commit is contained in:
Edward Oakes
2020-04-07 17:22:52 -05:00
committed by GitHub
parent 1be87c7fbb
commit 85481d635d
5 changed files with 56 additions and 16 deletions
+2
View File
@@ -244,6 +244,8 @@ def create_backend(func_or_class,
class CustomActor(RayServeMixin, func_or_class):
@wraps(func_or_class.__init__)
def __init__(self, *args, **kwargs):
# Initialize serve so it can be used in backends.
init()
super().__init__(*args, **kwargs)
arg_list = actor_init_args