File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
6464def kill_server ():
6565 print ("Server timed out due to inactivity, shutting down..." , flush = True )
6666 os ._exit (0 )
67-
67+
6868
6969def versions (list_packages : list ):
7070 list_with_versions = []
You can’t perform that action at this time.
0 commit comments