Просмотр исходного кода

celery.contrib.abortable: Fixes doc typo 'def Class' -> 'class Class'. Thanks to tback. Closes #398

Ask Solem 14 лет назад
Родитель
Сommit
2b99b17f6e
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      Changelog
  2. 1 1
      celery/contrib/abortable.py

+ 2 - 2
Changelog

@@ -19,12 +19,12 @@
 
 * Redis result backend now works with Redis 2.4.4.
 
-* celeryd_multi: The ``--gid`` option now works correctly.
+* celeryd_multi: The :option:`--gid` option now works correctly.
 
 * celeryd: Retry wrongfully used the repr of the traceback instead
   of the string representation.
 
-* App.config_from_object:  Now loads module, not attribute of module.
+* App.config_from_object: Now loads module, not attribute of module.
 
 * Fixed issue where logging of objects would give "<Unrepresentable: ...>"
 

+ 1 - 1
celery/contrib/abortable.py

@@ -29,7 +29,7 @@ In the consumer:
 
    from celery.contrib.abortable import AbortableTask
 
-   def MyLongRunningTask(AbortableTask):
+   class MyLongRunningTask(AbortableTask):
 
        def run(self, **kwargs):
            logger = self.get_logger(**kwargs)