All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rve.2.38.0.source-code.test_python_deployment.py Maven / Gradle / Ivy

There is a newer version: 2.39.0
Show newest version
# This file is used by CrossLanguageDeploymentTest.java to test cross-language
# invocation.
from ray import serve


def echo_server(v):
    return v


@serve.deployment
class Counter(object):
    def __init__(self, value):
        self.value = int(value)

    def increase(self, delta):
        self.value += int(delta)
        return str(self.value)

    def reconfigure(self, value_str):
        self.value = int(value_str)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy