diff --git a/coldfront/plugins/ifx/management/commands/processIfxappsMessages.py b/coldfront/plugins/ifx/management/commands/processIfxappsMessages.py index 2033c6976..3e5737c12 100644 --- a/coldfront/plugins/ifx/management/commands/processIfxappsMessages.py +++ b/coldfront/plugins/ifx/management/commands/processIfxappsMessages.py @@ -5,6 +5,7 @@ ''' import logging from time import sleep +from django.db import connection from django.conf import settings from django.core.management.base import BaseCommand from ifxbilling.fiine import handle_fiine_ifxapps_messages @@ -80,3 +81,4 @@ def handle(self, *args, **kwargs): logger.error(e) sleep(sleep_seconds) + connection.close()