ipyparallel icon indicating copy to clipboard operation
ipyparallel copied to clipboard

Client hangs if cluster is closed/shutdown

Open mccullerlp opened this issue 7 years ago • 1 comments

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?

mccullerlp avatar Jan 15 '18 02:01 mccullerlp

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.

slishak avatar Feb 15 '19 16:02 slishak