Skip to content

Commit

Permalink
Adds optional task_name argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Koed00 committed Feb 24, 2016
1 parent 0a8f2e7 commit 397503f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_q/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 397503f

@k4ml
Copy link
Contributor

@k4ml k4ml commented on 397503f Feb 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If understand this correctly, if you're passing this as keyword args you should use task_name but if you're passing it inside q_options you should name it asname. Is that correct ?

Please sign in to comment.