File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -528,9 +528,6 @@ def check_idle(kernel_idle_timeout):
528528 current_time = time .time ()
529529 # Check if the idle timeout has been exceeded
530530 if current_time - last_activity_time > kernel_idle_timeout :
531- print (
532- f"Kernel is idle for { current_time - last_activity_time } s, shutting down..."
533- )
534531 os .kill (os .getpid (), signal .SIGTERM )
535532 time .sleep (60 )
536533
@@ -553,7 +550,6 @@ def monitor_activity(conn_file):
553550 msg = client .get_iopub_msg (timeout = 1 )
554551 if msg and msg ["header" ]["msg_type" ] == "status" :
555552 execution_state = msg ["content" ]["execution_state" ]
556- print (f"Kernel execution state: { execution_state } " )
557553 if execution_state == "busy" :
558554 # Update last activity time
559555 last_activity_time = time .time ()
You can’t perform that action at this time.
0 commit comments