jezdez/django-queued-storage — Issue #4: Error in retry
Author: vad
Created: 2012-03-07 10:35:40+00:00
State: open

When the transfer task fails, i get the following error:

``` python
[2012-03-07 11:03:53,846: ERROR/MainProcess] Task queued_storage.tasks.Transfer[7f928629-5494-4bbf-858b-5c5180a95ffb] raised exception: TypeError("delay_task() got multiple values for keyword argument 'task_name'",)
Traceback (most recent call last):
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/execute/trace.py", line 47, in trace
return cls(states.SUCCESS, retval=fun(*args, **kwargs))
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/app/task/__init__.py", line 247, in __call__
return self.run(*args, **kwargs)
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/queued_storage/tasks.py", line 86, in run
local_options, remote_options, **kwargs)
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/app/task/__init__.py", line 542, in retry
self.apply_async(args=args, kwargs=kwargs, **options)
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/app/task/__init__.py", line 456, in apply_async
**options)
TypeError: delay_task() got multiple values for keyword argument 'task_name'
```

I'm using celery 2.4.6 and django-queued-storages 0.4. I also tried celery 2.5.1 and i got:

``` python
Traceback (most recent call last):
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/execute/trace.py", line 153, in trace_task
R = retval = task(*args, **kwargs)
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/queued_storage/tasks.py", line 86, in run
local_options, remote_options, **kwargs)
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/app/task/__init__.py", line 566, in retry
self.apply_async(args=args, kwargs=kwargs, **options)
File "/Users/vad/Source/Envs/moka/lib/python2.7/site-packages/celery/app/task/__init__.py", line 477, in apply_async
**options)
TypeError: delay_task() got multiple values for keyword argument 'task_name'
```