mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Watchdog check in_progress for audio/dns (#1555)
This commit is contained in:
parent
ff88359429
commit
e91983adb4
@ -188,13 +188,6 @@ class Audio(JsonConfig, CoreSysAttributes):
|
||||
"""
|
||||
return self.instance.is_running()
|
||||
|
||||
def is_fails(self) -> Awaitable[bool]:
|
||||
"""Return True if a Docker container is fails state.
|
||||
|
||||
Return a coroutine.
|
||||
"""
|
||||
return self.instance.is_fails()
|
||||
|
||||
async def repair(self) -> None:
|
||||
"""Repair CoreDNS plugin."""
|
||||
if await self.instance.exists():
|
||||
|
@ -228,7 +228,7 @@ class Tasks(CoreSysAttributes):
|
||||
async def _watchdog_dns_docker(self):
|
||||
"""Check running state of Docker and start if they is close."""
|
||||
# if CoreDNS is active
|
||||
if await self.sys_dns.is_running():
|
||||
if await self.sys_dns.is_running() or self.sys_dns.in_progress:
|
||||
return
|
||||
_LOGGER.warning("Watchdog found a problem with CoreDNS plugin!")
|
||||
|
||||
@ -244,7 +244,7 @@ class Tasks(CoreSysAttributes):
|
||||
async def _watchdog_audio_docker(self):
|
||||
"""Check running state of Docker and start if they is close."""
|
||||
# if PulseAudio plugin is active
|
||||
if await self.sys_audio.is_running():
|
||||
if await self.sys_audio.is_running() or self.sys_audio.in_progress:
|
||||
return
|
||||
_LOGGER.warning("Watchdog found a problem with PulseAudio plugin!")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user