Skip to content

Commit

Permalink
remove unused rookout
Browse files Browse the repository at this point in the history
  • Loading branch information
Asaf Cohen committed Dec 7, 2023
1 parent e1a86b0 commit 953cf27
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions scripts/gunicorn_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 953cf27

Please sign in to comment.