Jelajahi Sumber

Made AbortableTask abstract.

Simon Charette 12 tahun lalu
induk
melakukan
b351c85656
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      celery/contrib/abortable.py

+ 2 - 0
celery/contrib/abortable.py

@@ -142,6 +142,8 @@ class AbortableTask(Task):
 
 
     """
     """
 
 
+    abstract = True
+
     @classmethod
     @classmethod
     def AsyncResult(cls, task_id):
     def AsyncResult(cls, task_id):
         """Returns the accompanying AbortableAsyncResult instance."""
         """Returns the accompanying AbortableAsyncResult instance."""