We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b326a21 + 826dfa6 commit 481fd85Copy full SHA for 481fd85
readthedocs/builds/apps.py
@@ -1,6 +1,10 @@
1
+import logging
2
+
3
from django.apps import AppConfig
4
from django.utils.translation import ugettext_lazy as _
5
6
+log = logging.getLogger(__name__)
7
8
9
class Config(AppConfig):
10
name = 'readthedocs.builds'
@@ -11,3 +15,9 @@ def ready(self):
11
15
from readthedocs.builds.tasks import ArchiveBuilds
12
16
from readthedocs.worker import app
13
17
app.tasks.register(ArchiveBuilds)
18
19
+ try:
20
+ from readthedocsext.builds.tasks import ShutdownBuilder
21
+ app.tasks.register(ShutdownBuilder)
22
+ except (ModuleNotFoundError, ImportError):
23
+ log.info('ShutdownBuilder task could not be imported.')
0 commit comments