浏览代码

subtask.clone did not set options

Ask Solem 13 年之前
父节点
当前提交
2862192b61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/task/sets.py

+ 1 - 1
celery/task/sets.py

@@ -78,7 +78,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."""