Skip to content

Commit 818cdba

Browse files
committed
fix(Utils): add health route
1 parent 9e25be1 commit 818cdba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/opengeodeweb_back/utils_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def kill_task(current_app: flask.Flask) -> bool:
8787
minutes_since_last_request = (current_time - LAST_REQUEST_TIME) / 60
8888
minutes_since_last_ping = (current_time - LAST_PING_TIME) / 60
8989

90-
if REQUEST_COUNTER > 0:
90+
if REQUEST_COUNTER > 1:
9191
return False
9292
if MINUTES_BEFORE_TIMEOUT == 0:
9393
return False

0 commit comments

Comments
 (0)