mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-22 07:48:12 +08:00
Also fetches name override from q_options
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ def async(func, *args, **kwargs):
|
||||
tag = uuid()
|
||||
# build the task package
|
||||
task = {'id': tag[1],
|
||||
'name': keywords.pop('task_name', None) or tag[0],
|
||||
'name': keywords.pop('task_name', None) or q_options.pop('task_name', None) or tag[0],
|
||||
'func': func,
|
||||
'args': args}
|
||||
# push optionals
|
||||
|
||||
Reference in New Issue
Block a user