Browse Source

result.ready should check for membership in READY_STATES

Ask Solem 14 years ago
parent
commit
8ca7044bef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -76,7 +76,7 @@ class BaseAsyncResult(object):
         for retry then :const:`False` is returned.
 
         """
-        return self.status not in self.backend.UNREADY_STATES
+        return self.status in self.backend.READY_STATES
 
     def successful(self):
         """Returns :const:`True` if the task executed successfully."""