mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 02:28:12 +08:00
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user