diff options
author | Ernst Widerberg <ernst@sunet.se> | 2022-01-14 12:11:50 +0100 |
---|---|---|
committer | Ernst Widerberg <ernst@sunet.se> | 2022-01-14 12:11:50 +0100 |
commit | abc10e93d714bd44a8693be357b76ae1fda06537 (patch) | |
tree | 2cadb5a1a14eeb0a98369b5df94c31a256fd73a3 | |
parent | 0b55f7ff7cdd3b78bd9992063208476c1c080a02 (diff) |
Decrease database reconnection timer
-rwxr-xr-x | src/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.py b/src/main.py index c3e5ad9..1340ba6 100755 --- a/src/main.py +++ b/src/main.py @@ -40,7 +40,7 @@ for i in range(10): f'Database not responding, will try again soon. Attempt {i + 1} of 10.') else: break - time.sleep(10) + time.sleep(1) else: print('Database did not respond after 10 attempts, quitting.') sys.exit(-1) |