From a798b508bc2fe9f9fb57615ebd6babcd38453d0b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 24 Jun 2020 11:58:01 -0500 Subject: [PATCH] Raise slow startup timeout to 3h for large db migrations. (#37061) --- homeassistant/setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/setup.py b/homeassistant/setup.py index fbacf672e1f..dedcc27e44e 100644 --- a/homeassistant/setup.py +++ b/homeassistant/setup.py @@ -22,9 +22,11 @@ DATA_SETUP = "setup_tasks" DATA_DEPS_REQS = "deps_reqs_processed" SLOW_SETUP_WARNING = 10 -# Since a pip install can run, we wait -# 30 minutes to timeout -SLOW_SETUP_MAX_WAIT = 1800 + +# Since its possible for databases to be +# upwards of 36GiB (or larger) in the wild +# we wait up to 3 hours for startup +SLOW_SETUP_MAX_WAIT = 10800 @core.callback