diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 835f32d5e7..cf1e38ea48 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -337,6 +337,8 @@ class PluginsRegistry: collect, ) + _maintenance_mode = get_maintenance_mode() + with maintenance_mode_on(): if collect: logger.info('Collecting plugins') @@ -347,6 +349,10 @@ class PluginsRegistry: self.plugins_loaded = True self._load_plugins(full_reload=full_reload) + # Check if we wish to exit maintenance mode + if not _maintenance_mode: + set_maintenance_mode(False) + self.update_plugin_hash() self.loading_lock.release()