jazzband / django-queued-storage

Provides a proxy for Django storage backends that allows you to upload files locally and eventually serve them remotely
http://django-queued-storage.rtfd.org/
BSD 3-Clause "New" or "Revised" License
317 stars 62 forks source link

Error in retry #4

Closed vad closed 12 years ago

vad commented 12 years ago

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

[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:

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'
vad commented 12 years ago

(i emulated the Transfer failure turning off the wifi)

vad commented 12 years ago

thanks :)

jezdez commented 12 years ago

Np, please don't hesitate to try out 0.5.