mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +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."""
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from ..const import (
|
||||
@ -101,8 +100,7 @@ class Security(FileConfiguration, CoreSysAttributes):
|
||||
@Job(
|
||||
conditions=[JobCondition.INTERNET_SYSTEM],
|
||||
on_condition=SecurityJobError,
|
||||
limit=JobExecutionLimit.THROTTLE_WAIT,
|
||||
throttle_period=timedelta(seconds=300),
|
||||
limit=JobExecutionLimit.ONCE,
|
||||
)
|
||||
async def integrity_check(self) -> IntegrityResult:
|
||||
"""Run a full system integrity check of the platform.
|
||||
|
Loading…
x
Reference in New Issue
Block a user