From 2336630c68bf39a53e01326cf688488f1217d8af Mon Sep 17 00:00:00 2001 From: Aaron Kitzmiller Date: Mon, 4 Dec 2023 16:42:45 -0500 Subject: [PATCH] Close connection each time so that the server doesn't go away --- .../plugins/ifx/management/commands/processIfxappsMessages.py | 2 ++ 1 file changed, 2 insertions(+) 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()