Skip to content
Snippets Groups Projects

Do not erase defaults when reading configuration from worker

Merged Yoann Schneider requested to merge fix-default-user-config into master
2 files
+ 12
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -215,11 +215,9 @@ class BaseWorker(object):
# Load worker run configuration when available
worker_configuration = worker_run.get("configuration")
self.user_configuration = (
worker_configuration.get("configuration") if worker_configuration else None
)
if self.user_configuration:
if worker_configuration:
logger.info("Loaded user configuration from WorkerRun")
self.user_configuration.update(worker_configuration.get("configuration"))
# if debug mode is set to true activate debug mode in logger
if self.user_configuration.get("debug"):
logger.setLevel(logging.DEBUG)
Loading