diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-05 16:31:20 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-05 16:31:20 +0200 |
| commit | c5a1c8d9ca67f6dd3cc139ab9bb0782701f560bd (patch) | |
| tree | 409638ae3b239ff78519d1728683a67419d35fbb | |
| parent | 5fd3546fc2788016e0c41dc596bcd7d0c4318ebe (diff) | |
| download | analyzer-c5a1c8d9ca67f6dd3cc139ab9bb0782701f560bd.tar.gz analyzer-c5a1c8d9ca67f6dd3cc139ab9bb0782701f560bd.zip | |
add env var to auto telesuckrelease/2.16.0
| -rw-r--r-- | worker.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -22,6 +22,8 @@ IDLE_TIMEOUT = float(os.environ.get("IDLE_TIMEOUT") or 1) # s QUEUE = os.environ.get("QUEUE") or "analyze" DOCRUNCHMATCH = os.environ.get("DOCRUNCHMATCH") == "true" CRUNCH_PLAYER_QUEUE = os.environ.get("CRUNCH_PLAYER_QUEUE") or "crunch_player" +DOTELESUCKMATCH = os.environ.get("DOTELESUCKMATCH") == "true" +TELESUCK_QUEUE = os.environ.get("TELESUCK_QUEUE") or "telesuck" # mapping from Tier (-1 - 30) to average skill tier points vst_points = { @@ -136,6 +138,12 @@ def try_process(): routing_key=CRUNCH_PLAYER_QUEUE, body=body, properties=prop) + if DOTELESUCKMATCH: + # forward to telesucker + channel.basic_publish(exchange="", + routing_key=TELESUCK_QUEUE, + body=body, + properties=prop) queue = [] |
