Integrated Celery startup / management / config with PillarServer.

This commit is contained in:
2017-06-01 16:15:44 +02:00
parent e7d268bde6
commit 5af54237b9
7 changed files with 41 additions and 29 deletions

View File

@@ -16,6 +16,7 @@ can then be registered to the application at app creation time:
"""
import abc
import typing
import flask
import pillarsdk
@@ -25,6 +26,9 @@ class PillarExtension(object, metaclass=abc.ABCMeta):
# Set to True when your extension implements the project_settings() method.
has_project_settings = False
# List of Celery task modules introduced by this extension.
celery_task_modules: typing.List[str] = []
@property
@abc.abstractmethod
def name(self):