move all broker stuff to package, schedule is still todo
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
@ -9,7 +9,7 @@ from django_dramatiq_postgres.conf import Conf
|
||||
|
||||
class DbConnectionMiddleware(Middleware):
|
||||
def _close_old_connections(self, *args, **kwargs):
|
||||
if Conf.test:
|
||||
if Conf().test:
|
||||
return
|
||||
close_old_connections()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user