mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 09:38:11 +08:00
#76 checks for stale connections always
It turns out that checking stale connections on a timer takes between 1-2 times as long as just checking them always. This also has the benefit of catching timeouts that happen between timer loops.
This commit is contained in:
@@ -113,7 +113,6 @@ def test_cluster(broker):
|
||||
@pytest.mark.django_db
|
||||
def test_async(broker, admin_user):
|
||||
broker.list_key = 'cluster_test:q'
|
||||
Conf.DB_TIMEOUT = 0
|
||||
broker.delete_queue()
|
||||
a = async('django_q.tests.tasks.count_letters', DEFAULT_WORDLIST, hook='django_q.tests.test_cluster.assert_result',
|
||||
broker=broker)
|
||||
@@ -238,7 +237,6 @@ def test_async(broker, admin_user):
|
||||
assert fetch(k, 100) is None
|
||||
assert result(k, 100) is None
|
||||
broker.delete_queue()
|
||||
Conf.DB_TIMEOUT = 60
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
||||
Reference in New Issue
Block a user