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:
parent
74f9372c69
commit
42aab8ab83
1
Makefile
1
Makefile
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user