this is my celery task
def task_a(arg1, arg2, arg3, arg4)
and i call the task like following
arg1 is list and arg2,3,4 is integer
task_a.apply_async(arg1, arg2, arg3, arg4)
and i got an error message
File "/opt/envDjango/lib/python3.5/site-packages/celery/app/task.py", line 518, in apply_async
check_arguments(*(args or ()), **(kwargs or {}))
TypeError: functools.partial object argument after ** must be a mapping, not int
how can i solve the problem??
i tried to make a dictionary and change argument position, they are all failed...
delay
will work instead of apply_async
: see doc here
task_a.delay(*arg,**kwargs)
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加