diff piecrust/plugins/base.py @ 1114:8af2ea1f5c34

tasks: Add new `tasks` command and infrastructure, with `mention` task. * The new command lets `chef` run tasks from a queue. * The webmention endpoint now adds a mention task. * Moved mention handling code to a task runner.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 22 Feb 2018 22:12:45 -0800
parents 2e5c5d33d62c
children
line wrap: on
line diff
--- a/piecrust/plugins/base.py	Wed Feb 21 21:21:42 2018 -0800
+++ b/piecrust/plugins/base.py	Thu Feb 22 22:12:45 2018 -0800
@@ -44,6 +44,9 @@
     def getPublishers(self):
         return []
 
+    def getTaskRunners(self):
+        return []
+
     def initialize(self, app):
         pass
 
@@ -105,6 +108,9 @@
     def getPublishers(self):
         return self._getPluginComponents('getPublishers')
 
+    def getTaskRunners(self):
+        return self._getPluginComponents('getTaskRunners')
+
     def _ensureLoaded(self):
         if self._plugins is not None:
             return