mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 06:58:11 +08:00
Resets SQS conf in case of test failure
This commit is contained in:
@@ -18,6 +18,7 @@ from django_q.status import Stat
|
||||
from django_q.brokers import get_broker
|
||||
from .tasks import multiply
|
||||
|
||||
|
||||
class WordClass(object):
|
||||
def __init__(self):
|
||||
self.word_list = DEFAULT_WORDLIST
|
||||
@@ -30,6 +31,7 @@ class WordClass(object):
|
||||
def broker():
|
||||
Conf.DISQUE_NODES = None
|
||||
Conf.IRON_MQ = None
|
||||
Conf.SQS = None
|
||||
Conf.DJANGO_REDIS = 'default'
|
||||
return get_broker()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user