Override configurations in ElementsWorker.configure and DatasetWorker.configure
Workers that support a model version configuration or a user configuration always use these to override their config
attribute.
To avoid doing it in every worker, this should be ported at the end of the configure
methods of both ElementsWorker
and DatasetWorker
.
# Retrieve the model configuration
if self.model_configuration:
self.config.update(self.model_configuration)
logger.info("Model version configuration retrieved")
# Retrieve the user configuration
if self.user_configuration:
self.config.update(self.user_configuration)
logger.info("User configuration retrieved")