Watchdog check in_progress for audio/dns (#1555)

This commit is contained in:
Pascal Vizeli 2020-03-03 15:06:09 +01:00 committed by GitHub
parent ff88359429
commit e91983adb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -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():

View File

@ -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!")