mirror of
https://github.com/home-assistant/core
synced 2024-07-21 10:44:07 +00:00
Avoid creating executor job in requirements if another call satisfied the requirement (#73451)
This commit is contained in:
parent
bb8b51eda3
commit
08b55939fb
|
@ -231,9 +231,9 @@ class RequirementsManager:
|
|||
|
||||
async with self.pip_lock:
|
||||
# Recaculate missing again now that we have the lock
|
||||
await self._async_process_requirements(
|
||||
name, self._find_missing_requirements(requirements)
|
||||
)
|
||||
missing = self._find_missing_requirements(requirements)
|
||||
if missing:
|
||||
await self._async_process_requirements(name, missing)
|
||||
|
||||
def _find_missing_requirements(self, requirements: list[str]) -> list[str]:
|
||||
"""Find requirements that are missing in the cache."""
|
||||
|
|
Loading…
Reference in a new issue