(self, reason: Optional[str] = None)
| 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) |
no test coverage detected