realfastvla / realfast

Real-time interferometric data analysis for the VLA
http://realfast.io
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

redefining controller makes duplicate clients #73

Open caseyjlaw opened 5 years ago

caseyjlaw commented 5 years ago

If a realfast_controller instance is redefined, then some commands suggest that there are multiple distributed clients going.

In [38]: rfc.restart()                                                                                                                                                                             
2018-12-06 21:14:16 INFO     distributed.client Receive restart signal from scheduler
2018-12-06 21:14:16 INFO     distributed.client Receive restart signal from scheduler
2018-12-06 21:14:16 INFO     distributed.client Receive restart signal from scheduler
caseyjlaw commented 5 years ago

This happens when event loop is not closed properly (with shutdown or close methods). Issue should have been fixed by https://github.com/dask/distributed/pull/1073, but that was a while ago.