ipython / ipyparallel

IPython Parallel: Interactive Parallel Computing in Python
https://ipyparallel.readthedocs.io/
Other
2.59k stars 1k forks source link

Client hangs if cluster is closed/shutdown #306

Open mccullerlp opened 6 years ago

mccullerlp commented 6 years ago

I find that there is no way to query if the cluster is still live, and any tasks submitted will hang with no method for checking connection status.

Is there any workaround or heartbeat that occurs to prevent long hangs?

slishak commented 5 years ago

I'm having this problem too. Can easily reproduce:

cmd:

ipcluster start -n=4

Python terminal:

import ipyparallel as ipp
c = ipp.Client

cmd:

ipcluster stop

Python terminal:

c.queue_status()

causes an infinite hang.