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:
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.
Source code in proxystore/endpoint/serve.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|