Add running job condition to OS update (#2976)

This commit is contained in:
Pascal Vizeli 2021-06-24 16:06:06 +02:00 committed by GitHub
parent 24aecdddf3
commit b944b52b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,11 @@ class HassOS(CoreSysAttributes):
await self.sys_host.services.restart("hassos-config.service") await self.sys_host.services.restart("hassos-config.service")
@Job( @Job(
conditions=[JobCondition.HAOS, JobCondition.INTERNET_SYSTEM], conditions=[
JobCondition.HAOS,
JobCondition.INTERNET_SYSTEM,
JobCondition.RUNNING,
],
limit=JobExecutionLimit.ONCE, limit=JobExecutionLimit.ONCE,
on_condition=HassOSJobError, on_condition=HassOSJobError,
) )