mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 17:07:36 -02: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:
@@ -92,8 +92,6 @@ class Command(BaseCommand):
|
|||||||
return host_stats
|
return host_stats
|
||||||
|
|
||||||
def handle(self, *arg, **options):
|
def handle(self, *arg, **options):
|
||||||
WebsocketsMetricsServer().start()
|
|
||||||
|
|
||||||
# it's necessary to delay this import in case
|
# it's necessary to delay this import in case
|
||||||
# database migrations are still running
|
# database migrations are still running
|
||||||
from awx.main.models.ha import Instance
|
from awx.main.models.ha import Instance
|
||||||
@@ -166,6 +164,8 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
WebsocketsMetricsServer().start()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
websocket_relay_manager = WebSocketRelayManager()
|
websocket_relay_manager = WebSocketRelayManager()
|
||||||
asyncio.run(websocket_relay_manager.run())
|
asyncio.run(websocket_relay_manager.run())
|
||||||
|
|||||||
Reference in New Issue
Block a user