Only start the build manager if building is enabled
This commit is contained in:
parent
9d675b51ed
commit
d91829dc3c
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import features
|
||||||
|
|
||||||
from app import app, userfiles as user_files, build_logs, dockerfile_build_queue
|
from app import app, userfiles as user_files, build_logs, dockerfile_build_queue
|
||||||
|
|
||||||
|
@ -15,6 +16,10 @@ BUILD_MANAGERS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def run_build_manager():
|
def run_build_manager():
|
||||||
|
if not features.BUILD_SUPPORT:
|
||||||
|
LOGGER.debug('Building is disabled. Please enable the feature flag')
|
||||||
|
return
|
||||||
|
|
||||||
build_manager_config = app.config.get('BUILD_MANAGER')
|
build_manager_config = app.config.get('BUILD_MANAGER')
|
||||||
if build_manager_config is None:
|
if build_manager_config is None:
|
||||||
return
|
return
|
||||||
|
|
Reference in a new issue