Adds optional task_name argument

This commit is contained in:
Ilan Steemers
2016-02-24 10:52:25 +01:00
parent 0a8f2e7e72
commit 397503f5b2
+1 -1
View File
@@ -24,7 +24,7 @@ def async(func, *args, **kwargs):
tag = uuid()
# build the task package
task = {'id': tag[1],
'name': q_options.pop('task_name', None) or tag[0],
'name': keywords.pop('task_name', None) or tag[0],
'func': func,
'args': args}
# push optionals