Open jacobtomlinson opened 2 years ago
If I understand correctly, the issue is that there are daemon threads (those with thread.daemon = True
) involved somewhere that try to print to stderr
on shutdown (which might have already been deconstructed).
Since there's no explicit use of threading here I suppose this should actually be forwarded to distributed
?
Edit: I have also occasionally seen this when shutting down (double Ctrl-C in the terminal) a jupyterlab instance with a cluster created by dask-labextension
still running
I am noticing an intermittent
subprocess.CalledProcessError
error in CI mentioning locks andstderr
. This has been seen in https://github.com/dask-contrib/dask-ctl/runs/5448329455?check_suite_focus=true and mentioned in #36 too.Full log
```python-traceback ============================= test session starts ============================== platform linux -- Python 3.[9](https://github.com/dask-contrib/dask-ctl/runs/5448329455?check_suite_focus=true#step:5:9).[10](https://github.com/dask-contrib/dask-ctl/runs/5448329455?check_suite_focus=true#step:5:10), pytest-7.0.1, pluggy-1.0.0 rootdir: /home/runner/work/dask-ctl/dask-ctl, configfile: setup.cfg plugins: asyncio-0.15.1, cov-3.0.0 collected 24 items dask_ctl/discovery.py sss [ 12%] dask_ctl/lifecycle.py ssssss [ 37%] dask_ctl/proxy.py sss [ 50%] dask_ctl/tests/test_cli.py ..F. [ 66%] dask_ctl/tests/test_dask_ctl.py . [ 70%] dask_ctl/tests/test_discovery.py ..... [ 91%] dask_ctl/tests/test_lifecycle.py .. [100%] =================================== FAILURES =================================== _________________________________ test_create __________________________________ simple_spec_path = '/home/runner/work/dask-ctl/dask-ctl/dask_ctl/tests/specs/simple.yaml' def test_create(simple_spec_path): > output = check_output(["daskctl", "cluster", "create", "-f", simple_spec_path]) dask_ctl/tests/test_cli.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/subprocess.py:424: in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['daskctl', 'cluster', 'create', '-f', '/home/runner/work/dask-ctl/dask-ctl/dask_ctl/tests/specs/simple.yaml'],) kwargs = {'stdout': -1} process =