mirror of
https://github.com/ansible/awx.git
synced 2026-01-25 00:11:23 -03:30
Fix websocket relay. Set autocommit so conn.notifies() does not blocks forever (#15043)
Without autocommit conn.notifies() blocks forever
This commit is contained in:
parent
f48b2d1ae5
commit
0b5e59d9cb
@ -324,6 +324,7 @@ class WebSocketRelayManager(object):
|
||||
port=database_conf['PORT'],
|
||||
**database_conf.get("OPTIONS", {}),
|
||||
)
|
||||
await async_conn.set_autocommit(True)
|
||||
|
||||
task = event_loop.create_task(self.on_ws_heartbeat(async_conn), name="on_ws_heartbeat")
|
||||
logger.info("Creating `on_ws_heartbeat` task in event loop.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user