Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Deployer class #179

Open
ukclivecox opened this issue Jul 31, 2021 · 0 comments
Open

Remove Deployer class #179

ukclivecox opened this issue Jul 31, 2021 · 0 comments

Comments

@ukclivecox
Copy link
Contributor

The Deployer class is no longer needed as these methods have been made global and are not called via a runtime.

tempo/tempo/serve/base.py

Lines 335 to 362 in 29e08c4

class Deployer(object):
def __init__(self, runtime_options: Optional[BaseRuntimeOptionsType]):
self.runtime_options = runtime_options
def deploy(self, model: Any):
t = model.get_tempo()
t.set_runtime_options_override(self.runtime_options)
t.deploy(self)
def undeploy(self, model: Any):
t = model.get_tempo()
t.set_runtime_options_override(self.runtime_options)
t.undeploy(self)
def endpoint(self, model: Any):
t = model.get_tempo()
t.set_runtime_options_override(self.runtime_options)
return t.get_endpoint(self)
def wait_ready(self, model: Any, timeout_secs=None):
t = model.get_tempo()
t.set_runtime_options_override(self.runtime_options)
t.wait_ready(self, timeout_secs)
def manifest(self, model: Any):
t = model.get_tempo()
t.set_runtime_options_override(self.runtime_options)
return t.to_k8s_yaml(self)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant