If I restart my jupyter kernel will any existing LocalCluster shutdown or will the dask worker processes keep running?
I know when I used a SLURM Cluster the processes keep running if I restart my kernel without calling cluster.close()
and I have to use squeue
to see them and scancel
to cancel them.
For local processes however how can I tell that all the worker processes are gone after I have restarted my kernel. If they do not disappear automatically how can I manually shut them down if I no longer have access to cluster
(the kernel restarted)
I try to remember to call cluster.close
but I often forget. Using a context manager doesn't work for my jupyter needs.