mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 04:58:11 +08:00
Also fetches name override from q_options
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ def async(func, *args, **kwargs):
|
|||||||
"""Queue a task for the cluster."""
|
"""Queue a task for the cluster."""
|
||||||
keywords = kwargs.copy()
|
keywords = kwargs.copy()
|
||||||
opt_keys = ('hook', 'group', 'save', 'sync', 'cached', 'iter_count', 'iter_cached', 'chain', 'broker')
|
opt_keys = ('hook', 'group', 'save', 'sync', 'cached', 'iter_count', 'iter_cached', 'chain', 'broker')
|
||||||
q_options = keywords.pop('q_options', None)
|
q_options = keywords.pop('q_options', {})
|
||||||
# get an id
|
# get an id
|
||||||
tag = uuid()
|
tag = uuid()
|
||||||
# build the task package
|
# build the task package
|
||||||
|
|||||||
Reference in New Issue
Block a user