diff --git a/resotocore/resotocore/core_config.py b/resotocore/resotocore/core_config.py index f6ef4d0eb9..6c33f668a3 100644 --- a/resotocore/resotocore/core_config.py +++ b/resotocore/resotocore/core_config.py @@ -586,6 +586,10 @@ class CoreConfig(ConfigObject): def multi_tenant_setup(self) -> bool: return cast(bool, self.args.multi_tenant_setup) + @property + def no_scheduling(self) -> bool: + return cast(bool, self.args.no_scheduling) + @property def editable(self) -> "EditableConfig": return EditableConfig(self.api, self.cli, self.graph_update, self.runtime, self.workflows) diff --git a/resotocore/resotocore/graph_manager/graph_manager.py b/resotocore/resotocore/graph_manager/graph_manager.py index f7d0329e62..5d63e9c0a5 100644 --- a/resotocore/resotocore/graph_manager/graph_manager.py +++ b/resotocore/resotocore/graph_manager/graph_manager.py @@ -102,7 +102,7 @@ async def _on_config_updated(self, config_id: str) -> None: async def start(self) -> None: self.lock = Lock() - if not self.config.multi_tenant_setup: + if not self.config.multi_tenant_setup and not self.config.no_scheduling: # initialize the snapshot schedule await self._on_config_updated(ResotoCoreSnapshotsConfigId) await self.__setup_cleanup_old_snapshots_worker(self.config.snapshots)