From 953cf27b93d770dc7079adf6358c11a51ebcb0b7 Mon Sep 17 00:00:00 2001 From: Asaf Cohen Date: Thu, 7 Dec 2023 17:13:21 +0200 Subject: [PATCH] remove unused rookout --- scripts/gunicorn_conf.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/scripts/gunicorn_conf.py b/scripts/gunicorn_conf.py index 69630c25a..b40546ae6 100644 --- a/scripts/gunicorn_conf.py +++ b/scripts/gunicorn_conf.py @@ -5,22 +5,7 @@ def post_fork(server, worker): """this hook takes effect if we are using gunicorn to run OPAL.""" - rookout_token = os.getenv("ROOKOUT_TOKEN", None) - if not rookout_token: - return - - service = os.getenv("ROOKOUT_SERVICE", "opal_server") - env = os.getenv("ROOKOUT_ENV", "dev") - user = os.getenv("ROOKOUT_USER", None) - - logger.info("Running Rookout...") - labels = {"env": env, "service": service} - if user is not None: - labels.update({"user": user}) - - import rook - - rook.start(token=rookout_token, labels=labels) + pass def when_ready(server):