mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 23:26:29 +00:00
Using job limit ONCE for integrity (#3613)
This commit is contained in:
parent
e390a3e5d5
commit
f684c8f0dd
@ -1,7 +1,6 @@
|
|||||||
"""Fetch last versions from webserver."""
|
"""Fetch last versions from webserver."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ..const import (
|
from ..const import (
|
||||||
@ -101,8 +100,7 @@ class Security(FileConfiguration, CoreSysAttributes):
|
|||||||
@Job(
|
@Job(
|
||||||
conditions=[JobCondition.INTERNET_SYSTEM],
|
conditions=[JobCondition.INTERNET_SYSTEM],
|
||||||
on_condition=SecurityJobError,
|
on_condition=SecurityJobError,
|
||||||
limit=JobExecutionLimit.THROTTLE_WAIT,
|
limit=JobExecutionLimit.ONCE,
|
||||||
throttle_period=timedelta(seconds=300),
|
|
||||||
)
|
)
|
||||||
async def integrity_check(self) -> IntegrityResult:
|
async def integrity_check(self) -> IntegrityResult:
|
||||||
"""Run a full system integrity check of the platform.
|
"""Run a full system integrity check of the platform.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user