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
) –Max request body size in bytes.
-
body_timeout
(
int
) –Number of seconds to wait for the body to be completely received.
Returns:
-
quart.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
) –Logging level of endpoint.
-
log_file
(
str | None
) –Optional file path to append log to.
-
use_uvloop
(
bool
) –Install uvloop as the default event loop implementation.