Explorar o código

celery.task.chords.Chord must be importable

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
0a8fd00e15
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      celery/task/chords.py

+ 3 - 0
celery/task/chords.py

@@ -12,8 +12,11 @@
 from __future__ import absolute_import
 
 from .. import current_app
+from ..local import Proxy
 from ..utils import uuid
 
+Chord = Proxy(lambda: current_app.tasks["celery.chord"])
+
 
 class chord(object):
     Chord = None