MCPcopy Create free account
hub / github.com/Freedium-cfd/web / execute_server_worker

Function execute_server_worker

web/server/services/worker.py:79–92  ·  view source on GitHub ↗
(host: str, port: int)

Source from the content-addressed store, hash-verified

77
78
79def 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()

Callers

nothing calls this directly

Calls 2

number_of_workersFunction · 0.85

Tested by

no test coverage detected