mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 20:18:12 +08:00
Merge pull request #98 from Koed00/dev
Adds timeout to group key cache object
This commit is contained in:
+1
-1
@@ -450,7 +450,7 @@ def save_cached(task, broker):
|
|||||||
return
|
return
|
||||||
# save the group list
|
# save the group list
|
||||||
group_list.append(task_key)
|
group_list.append(task_key)
|
||||||
broker.cache.set(group_key, group_list)
|
broker.cache.set(group_key, group_list, timeout)
|
||||||
# async next in a chain
|
# async next in a chain
|
||||||
if task.get('chain', None):
|
if task.get('chain', None):
|
||||||
tasks.async_chain(task['chain'], group=group, cached=task['cached'], sync=task['sync'], broker=broker)
|
tasks.async_chain(task['chain'], group=group, cached=task['cached'], sync=task['sync'], broker=broker)
|
||||||
|
|||||||
+1
-1
@@ -123,7 +123,7 @@ At the moment this means we support the 1.7.10 and 1.8.5 releases.
|
|||||||
Once version 1.9 is out , support for Django 1.7 will be deprecated.
|
Once version 1.9 is out , support for Django 1.7 will be deprecated.
|
||||||
This will mean that newer releases of Django Q might still work, but are no longer targeted for testing.
|
This will mean that newer releases of Django Q might still work, but are no longer targeted for testing.
|
||||||
|
|
||||||
Django Q has been tested with Django 1.9a1 and should be compatible.
|
Django Q has been tested with Django 1.9b1 and should be compatible.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user