Browse Source

Self was sent to a method (doh) in the tyrant and cache backends.

Ask Solem 16 years ago
parent
commit
8043521852
2 changed files with 4 additions and 4 deletions
  1. 2 2
      celery/backends/cache.py
  2. 2 2
      celery/backends/tyrant.py

+ 2 - 2
celery/backends/cache.py

@@ -28,11 +28,11 @@ class Backend(BaseBackend):
 
 
     def get_status(self, task_id):
     def get_status(self, task_id):
         """Get the status of a task."""
         """Get the status of a task."""
-        return self._get_task_meta_for(self, task_id)["status"]
+        return self._get_task_meta_for(task_id)["status"]
 
 
     def get_result(self, task_id):
     def get_result(self, task_id):
         """Get the result of a task."""
         """Get the result of a task."""
-        meta = self._get_task_meta_for(self, task_id)
+        meta = self._get_task_meta_for(task_id)
         if meta["status"] == "FAILURE":
         if meta["status"] == "FAILURE":
             return self.exception_to_python(meta["result"])
             return self.exception_to_python(meta["result"])
         else:
         else:

+ 2 - 2
celery/backends/tyrant.py

@@ -68,11 +68,11 @@ class Backend(BaseBackend):
 
 
     def get_status(self, task_id):
     def get_status(self, task_id):
         """Get the status for a task."""
         """Get the status for a task."""
-        return self._get_task_meta_for(self, task_id)["status"]
+        return self._get_task_meta_for(task_id)["status"]
 
 
     def get_result(self, task_id):
     def get_result(self, task_id):
         """Get the result of a task."""
         """Get the result of a task."""
-        meta = self._get_task_meta_for(self, task_id)
+        meta = self._get_task_meta_for(task_id)
         if meta["status"] == "FAILURE":
         if meta["status"] == "FAILURE":
             return self.exception_to_python(meta["result"])
             return self.exception_to_python(meta["result"])
         else:
         else: