Also fetches name override from q_options

This commit is contained in:
Ilan Steemers
2016-02-28 15:05:50 +01:00
parent 8f270a5b97
commit 1e5509de45
+1 -1
View File
@@ -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