MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / stop_all_plugins

Method stop_all_plugins

apps/plugins/loader.py:615–622  ·  view source on GitHub ↗
(self, reason: Optional[str] = None)

Source from the content-addressed store, hash-verified

613 close_old_connections()
614
615 def stop_all_plugins(self, reason: Optional[str] = None) -> int:
616 stopped = 0
617 with self._lock:
618 registry_snapshot = dict(self._registry)
619 for key in registry_snapshot.keys():
620 if self.stop_plugin(key, reason=reason):
621 stopped += 1
622 return stopped
623
624 def _resolve_package_name(self, key: str) -> str:
625 safe_key = self._safe_module_name(key)

Callers 1

postMethod · 0.80

Calls 2

stop_pluginMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected