1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

removing websocket notification and service

This commit is contained in:
Wayne Witzel III 2016-08-11 15:04:27 -04:00
parent 74f9372c69
commit 42aab8ab83
2 changed files with 0 additions and 14 deletions

View File

@ -361,7 +361,6 @@ server_noattach:
tmux new-window 'exec make receiver'
tmux select-window -t tower:1
tmux rename-window 'Extra Services'
tmux split-window -v 'exec make socketservice'
tmux split-window -h 'exec make factcacher'
server: server_noattach

View File

@ -490,19 +490,6 @@ def get_system_task_capacity():
return 50 + ((int(total_mem_value) / 1024) - 2) * 75
def emit_websocket_notification(endpoint, event, payload, token_key=None):
from awx.main.socket_queue import Socket
try:
with Socket('websocket', 'w', nowait=True, logger=logger) as websocket:
if token_key:
payload['token_key'] = token_key
payload['event'] = event
payload['endpoint'] = endpoint
websocket.publish(payload)
except Exception:
pass
_inventory_updates = threading.local()