Explorar el Código

subtask.clone did not set options

Ask Solem hace 13 años
padre
commit
16c52f69d2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/task/sets.py

+ 1 - 1
celery/task/sets.py

@@ -73,7 +73,7 @@ class subtask(AttributeDict):
         return self.__class__(self.task,
                               args=tuple(args) + tuple(self.args),
                               kwargs=dict(self.kwargs, **kwargs),
-                              **dict(self.options, **options))
+                              options=dict(self.options, **options))
 
     def apply_async(self, args=(), kwargs={}, **options):
         """Apply this task asynchronously."""