# Worker Timeout and restart

**URL:** <https://discuss.ray.io/t/worker-timeout-and-restart/5070>\
**Category:** RLlib\
**Created:** [February 15, 2022, 9:23am UTC](https://discuss.ray.io/t/worker-timeout-and-restart/5070 "2022-02-15T09:23:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebastianBo1995](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@SebastianBo1995](https://discuss.ray.io/u/SebastianBo1995)\
**Post date:** [February 15, 2022, 9:23am UTC](https://discuss.ray.io/t/worker-timeout-and-restart/5070/1 "2022-02-15T09:23:05Z")

</div>

Hello,

I currently have the problem that the RL-Training freezes after 1-3 days. I am unsure where it comes from, but I would like to implement a timeout for the environment. So I got a couple of questions:

- is there already a timeout implemented in RLLib / Ray that can be used?
- is it possible to use that timeout to completely close and restart the worker?
- if not is ray compatible with signals? Or with the [timeout-decorator · PyPI](https://pypi.org/project/timeout-decorator/)

Thanks in advance

Regards  
Sebastian
