mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
Fix wsrelay KeyboardInteruption not respected (#15036)
- stop wsrelay on keyboard interuption - restart wsrelay for any other failure reason
This commit is contained in:
parent
3f566c8737
commit
8cafdf0400
@ -171,5 +171,8 @@ class Command(BaseCommand):
|
||||
try:
|
||||
asyncio.run(websocket_relay_manager.run())
|
||||
except KeyboardInterrupt:
|
||||
logger.info('Restarting Websocket Relayer')
|
||||
logger.info('Shutting down Websocket Relayer')
|
||||
break
|
||||
except Exception as e:
|
||||
logger.exception('Error in Websocket Relayer, exception: {}. Restarting in 10 seconds'.format(e))
|
||||
time.sleep(10)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user