Skip to content

Commit c3059ca

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

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/opengeodeweb_back/utils_functions.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,14 @@ def kill_task(current_app: flask.Flask) -> bool:
8686
current_time = time.time()
8787
minutes_since_last_request = (current_time - LAST_REQUEST_TIME) / 60
8888
minutes_since_last_ping = (current_time - LAST_PING_TIME) / 60
89-
89+
print(
90+
"kill_task",
91+
REQUEST_COUNTER,
92+
MINUTES_BEFORE_TIMEOUT,
93+
minutes_since_last_ping,
94+
minutes_since_last_request,
95+
flush=True,
96+
)
9097
if REQUEST_COUNTER > 1:
9198
return False
9299
if MINUTES_BEFORE_TIMEOUT == 0:

0 commit comments

Comments
 (0)