Skip to content

Commit 3a59834

Browse files
Apply prepare changes
1 parent 8db3eef commit 3a59834

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/opengeodeweb_back/utils_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ def kill_task(current_app):
5151
minutes_since_last_request = (current_time - LAST_REQUEST_TIME) / 60
5252
minutes_since_last_ping = (current_time - LAST_PING_TIME) / 60
5353

54-
if (REQUEST_COUNTER > 0):
54+
if REQUEST_COUNTER > 0:
5555
return
5656
if MINUTES_BEFORE_TIMEOUT == 0:
5757
return
58-
if (minutes_since_last_ping > MINUTES_BEFORE_TIMEOUT):
58+
if minutes_since_last_ping > MINUTES_BEFORE_TIMEOUT:
5959
kill_server()
60-
if (minutes_since_last_request > MINUTES_BEFORE_TIMEOUT):
60+
if minutes_since_last_request > MINUTES_BEFORE_TIMEOUT:
6161
kill_server()
6262

6363

6464
def kill_server():
6565
print("Server timed out due to inactivity, shutting down...", flush=True)
6666
os._exit(0)
67-
67+
6868

6969
def versions(list_packages: list):
7070
list_with_versions = []

0 commit comments

Comments
 (0)