Force db connections close before launching the server.

This commit is contained in:
Antoine Nguyen
2020-06-15 13:31:28 +02:00
parent c5bbaee450
commit 050d9ed90a
+2
View File
@@ -8,6 +8,7 @@ import time
import redis
from django import db
from django.conf import settings
from django.core.management import call_command
@@ -21,6 +22,7 @@ from . import constants
def start_policy_daemon():
db.connections.close_all()
call_command("policy_daemon")