Skip to content

Commit

Permalink
Fix issue with websocket blocking forever Upstream #15043
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed Oct 21, 2024
1 parent 8a6d8a8 commit 35616fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions awx/main/wsrelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 35616fd

Please sign in to comment.