瀏覽代碼

Adds celery.tasks for task registry to prepare for 3.0

Ask Solem 13 年之前
父節點
當前提交
06c64c0138
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      celery/app/base.py

+ 5 - 0
celery/app/base.py

@@ -385,3 +385,8 @@ class BaseApp(object):
     def log(self):
     def log(self):
         """Logging utilities.  See :class:`~celery.log.Logging`."""
         """Logging utilities.  See :class:`~celery.log.Logging`."""
         return instantiate(self.log_cls, app=self)
         return instantiate(self.log_cls, app=self)
+
+    @cached_property
+    def tasks(self):
+        from ..registry import tasks
+        return tasks