mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
removed unused imports. fix exception message
Signed-off-by: jessicamack <jmack@redhat.com>
This commit is contained in:
@@ -61,7 +61,6 @@ from awx.main.utils.common import (
|
|||||||
|
|
||||||
from awx.main.utils.reload import stop_local_services
|
from awx.main.utils.reload import stop_local_services
|
||||||
from awx.main.utils.pglock import advisory_lock
|
from awx.main.utils.pglock import advisory_lock
|
||||||
from awx.main.utils.external_logging import send_pg_notify
|
|
||||||
from awx.main.tasks.receptor import get_receptor_ctl, worker_info, worker_cleanup, administrative_workunit_reaper, write_receptor_config
|
from awx.main.tasks.receptor import get_receptor_ctl, worker_info, worker_cleanup, administrative_workunit_reaper, write_receptor_config
|
||||||
from awx.main.consumers import emit_channel_notification
|
from awx.main.consumers import emit_channel_notification
|
||||||
from awx.main import analytics
|
from awx.main import analytics
|
||||||
|
|||||||
@@ -4,10 +4,8 @@ import asyncio
|
|||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
from aiohttp import client_exceptions
|
from aiohttp import client_exceptions
|
||||||
from asgiref.sync import sync_to_async
|
|
||||||
|
|
||||||
from channels.layers import get_channel_layer
|
from channels.layers import get_channel_layer
|
||||||
from channels.db import database_sync_to_async
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
@@ -240,7 +238,7 @@ class WebSocketRelayManager(object):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
# This catch-all is the same as the one above. asyncio will eat the exception
|
# This catch-all is the same as the one above. asyncio will eat the exception
|
||||||
# but we want to know about it.
|
# but we want to know about it.
|
||||||
logger.exception(f"pg_consumer exception")
|
logger.exception(f"pg_consumer exception: {e}")
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
event_loop = asyncio.get_running_loop()
|
event_loop = asyncio.get_running_loop()
|
||||||
|
|||||||
Reference in New Issue
Block a user