mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Fix awx-manage run_wsrelay --status (#14997)
by don't start the metrics server if --status is passed in
This commit is contained in:
parent
d903c524f5
commit
615f09226f
@ -92,8 +92,6 @@ class Command(BaseCommand):
|
||||
return host_stats
|
||||
|
||||
def handle(self, *arg, **options):
|
||||
WebsocketsMetricsServer().start()
|
||||
|
||||
# it's necessary to delay this import in case
|
||||
# database migrations are still running
|
||||
from awx.main.models.ha import Instance
|
||||
@ -166,6 +164,8 @@ class Command(BaseCommand):
|
||||
|
||||
return
|
||||
|
||||
WebsocketsMetricsServer().start()
|
||||
|
||||
try:
|
||||
websocket_relay_manager = WebSocketRelayManager()
|
||||
asyncio.run(websocket_relay_manager.run())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user