prefect.runner.server
build_server(runner)
async
Build a FastAPI server for a runner.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
runner
|
Runner
|
the runner this server interacts with and monitors |
required |
log_level
|
str
|
the log level to use for the server |
required |
Source code in src/prefect/runner/server.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
|
get_subflow_schemas(runner)
async
Load available subflow schemas by filtering for only those subflows in the deployment entrypoint's import space.
Source code in src/prefect/runner/server.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
start_webserver(runner, log_level=None)
Run a FastAPI server for a runner.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
runner
|
Runner
|
the runner this server interacts with and monitors |
required |
log_level
|
str
|
the log level to use for the server |
None
|
Source code in src/prefect/runner/server.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
|