proxystore.endpoint.serve¶
Endpoint serving.
create_app() ¶
create_app(
endpoint: Endpoint,
max_content_length: int | None = None,
body_timeout: int = 300,
) -> quart.Quart
Create quart app for endpoint and registers routes.
Parameters:
-
endpoint(Endpoint) –Initialized endpoint to forward quart routes to.
-
max_content_length(int | None, default:None) –Max request body size in bytes.
-
body_timeout(int, default:300) –Number of seconds to wait for the body to be completely received.
Returns:
-
Quart–Quart app.
Source code in proxystore/endpoint/serve.py
serve() ¶
serve(
config: EndpointConfig,
*,
log_level: int | str = logging.INFO,
log_file: str | None = None,
use_uvloop: bool = True
) -> None
Initialize endpoint and serve Quart app.
Warning
This function does not return until the Quart app is terminated.
Parameters:
-
config(EndpointConfig) –Configuration object.
-
log_level(int | str, default:INFO) –Logging level of endpoint.
-
log_file(str | None, default:None) –Optional file path to append log to.
-
use_uvloop(bool, default:True) –Install uvloop as the default event loop implementation.