Add jitter to backup start time to avoid thundering herd (#135065)

This commit is contained in:
Erik Montnemery
2025-01-09 10:53:33 +01:00
committed by GitHub
parent c9d8c59b45
commit 9901f3c3dd
2 changed files with 9 additions and 0 deletions

View File

@@ -1345,6 +1345,7 @@ async def test_config_update_errors(
),
],
)
@patch("homeassistant.components.backup.config.BACKUP_START_TIME_JITTER", 0)
async def test_config_schedule_logic(
hass: HomeAssistant,
hass_ws_client: WebSocketGenerator,
@@ -1787,6 +1788,7 @@ async def test_config_schedule_logic(
),
],
)
@patch("homeassistant.components.backup.config.BACKUP_START_TIME_JITTER", 0)
async def test_config_retention_copies_logic(
hass: HomeAssistant,
hass_ws_client: WebSocketGenerator,