From 35616fdb0f081096fc24e0e6cef9ca84a37e91bf Mon Sep 17 00:00:00 2001 From: Jimmy Conner Date: Mon, 21 Oct 2024 09:33:44 -0500 Subject: [PATCH] Fix issue with websocket blocking forever Upstream #15043 --- awx/main/wsrelay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/wsrelay.py b/awx/main/wsrelay.py index aa53ada..68cfe8d 100644 --- a/awx/main/wsrelay.py +++ b/awx/main/wsrelay.py @@ -318,6 +318,8 @@ async def run(self): **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.")