mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
removing websocket notification and service
This commit is contained in:
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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user