From 14b26570efd1b78b5f982c7562f1d64d00e233a4 Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke@nordu.net> Date: Thu, 13 Apr 2023 15:07:37 +0200 Subject: [PATCH] reduce the timeout to 1h for should_provision check --- brian_dashboard_manager/routes/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brian_dashboard_manager/routes/update.py b/brian_dashboard_manager/routes/update.py index f890e38..56ada82 100644 --- a/brian_dashboard_manager/routes/update.py +++ b/brian_dashboard_manager/routes/update.py @@ -51,9 +51,9 @@ def should_provision(): state.get('timestamp', 1)) now = datetime.datetime.now() - if provisioning and (now - timestamp).total_seconds() > 86400: + if provisioning and (now - timestamp).total_seconds() > 3600: # if we stay in provisioning state - # for over a day, we probably restarted + # for over an hour, we probably restarted # and the state file is out of sync. provisioning = False -- GitLab