diff --git a/health_check/mixins.py b/health_check/mixins.py index fefa29e9..7ab030dc 100644 --- a/health_check/mixins.py +++ b/health_check/mixins.py @@ -40,7 +40,7 @@ def _run(plugin): connections.close_all() - with ThreadPoolExecutor(max_workers=len(self.plugins) or 1) as executor: + with ThreadPoolExecutor() as executor: for plugin in executor.map(_run, self.plugins): if plugin.critical_service: if not HEALTH_CHECK["WARNINGS_AS_ERRORS"]: