Browse Source

signature(s, app=app) did not work properly when passing kwargs, as dicts were not properly upgraded to their subtask_type (e.g. Sig -> group)

Ask Solem 11 năm trước cách đây
mục cha
commit
845557372a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/canvas.py

+ 1 - 1
celery/canvas.py

@@ -639,7 +639,7 @@ class chord(Signature):
 
 
 def signature(varies, *args, **kwargs):
-    if not (args or kwargs) and isinstance(varies, dict):
+    if isinstance(varies, dict):
         if isinstance(varies, Signature):
             return varies.clone()
         return Signature.from_dict(varies)