Explorar el Código

Tests passing

Ask Solem hace 12 años
padre
commit
0eb5a8fd20
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      celery/utils/timer2.py

+ 2 - 2
celery/utils/timer2.py

@@ -46,14 +46,14 @@ class Entry(object):
             'fun', 'args', 'kwargs', 'tref', 'cancelled',
             '_last_run', '__weakref__',
         )
-    _last_run = None
-    cancelled = False
 
     def __init__(self, fun, args=None, kwargs=None):
         self.fun = fun
         self.args = args or []
         self.kwargs = kwargs or {}
         self.tref = weakrefproxy(self)
+        self._last_run = None
+        self.cancelled = False
 
     def __call__(self):
         return self.fun(*self.args, **self.kwargs)