Skip to content

Commit

Permalink
Close connection each time so that the server doesn't go away
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronk committed Dec 4, 2023
1 parent a756bef commit 2336630
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -80,3 +81,4 @@ def handle(self, *args, **kwargs):
logger.error(e)

sleep(sleep_seconds)
connection.close()

0 comments on commit 2336630

Please sign in to comment.