diff --git a/scripts/auto-stop-idle/autostop.py b/scripts/auto-stop-idle/autostop.py index 3057655..7edb0e7 100755 --- a/scripts/auto-stop-idle/autostop.py +++ b/scripts/auto-stop-idle/autostop.py @@ -91,7 +91,7 @@ def get_notebook_name(): for notebook in data: # Idleness is defined by Jupyter # https://github.com/jupyter/notebook/issues/4634 - if notebook['kernel']['execution_state'] == 'idle': + if notebook['kernel']['execution_state'] != 'busy': if not ignore_connections: if notebook['kernel']['connections'] == 0: if not is_idle(notebook['kernel']['last_activity']):