From 7ed0ad8ecb58c770baf665eff38c0f089e496d0f Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Wed, 31 Aug 2022 09:28:51 -0400 Subject: [PATCH] ref: set binary-path for pyuwsgi to be reloadable --- snuba/utils/uwsgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/snuba/utils/uwsgi.py b/snuba/utils/uwsgi.py index f13f16c6ac..49b26ebae0 100644 --- a/snuba/utils/uwsgi.py +++ b/snuba/utils/uwsgi.py @@ -44,6 +44,7 @@ def run(module: str, bind: str, **kwargs: bool | int | str | None) -> NoReturn: protocol = os.environ.pop("UWSGI_PROTOCOL", "http") options: dict[str, bool | int | str | None] = { "auto_procname": True, + "binary_path": sys.executable, "chmod_socket": 777, "die_on_term": True, "disable_write_exception": True,