(host: str, port: int)
| 77 | |
| 78 | |
| 79 | def execute_server_worker(host: str, port: int): |
| 80 | options = { |
| 81 | "bind": f"{host}:{port}", |
| 82 | "workers": number_of_workers(), |
| 83 | "logger_class": GunicornLogger, |
| 84 | "worker_class": "uvicorn.workers.UvicornWorker", |
| 85 | "preload_app": True, |
| 86 | "post_worker_init": post_worker_init, |
| 87 | "timeout": config.WORKER_TIMEOUT, |
| 88 | "worker_exit": worker_exit, |
| 89 | "worker_abort": worker_abort, |
| 90 | # "on_exit": on_exit, |
| 91 | } |
| 92 | GunicornStandaloneApplication(app, options).run() |
nothing calls this directly
no test coverage detected