# Automatically disconnect idle workers

**URL:** <https://discourse.julialang.org/t/automatically-disconnect-idle-workers/33579>\
**Category:** General Usage\
**Tags:** distributed\
**Created:** [January 20, 2020, 12:47pm UTC](https://discourse.julialang.org/t/automatically-disconnect-idle-workers/33579 "2020-01-20T12:47:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pfarndt](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@pfarndt](https://discourse.julialang.org/u/pfarndt)\
**Post date:** [January 20, 2020, 12:47pm UTC](https://discourse.julialang.org/t/automatically-disconnect-idle-workers/33579/1 "2020-01-20T12:47:12Z")

</div>

While doing some interactive data analysis (in a Jupyter notebook) I often use a `ClusterManagers.ElasticManager` in the master process and then connect a couple of remote workers using `Distributed.start_worker(...)`.

Sometimes these notebooks and its associated Julia kernel is running for days although I do not work with them anymore. I do not care so much about this one jupyter kernel, but

Is there a way to automatically disconnect idle worker processes after they are idle for say 10 minutes?
