Skip to content
Snippets Groups Projects
Commit 14b26570 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

reduce the timeout to 1h for should_provision check

parent 7f8be331
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment