# How to set ray.worker.timeout

**URL:** <https://discuss.ray.io/t/how-to-set-ray-worker-timeout/5779>\
**Category:** Ray Core\
**Created:** [April 13, 2022, 5:41pm UTC](https://discuss.ray.io/t/how-to-set-ray-worker-timeout/5779 "2022-04-13T17:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marsupialtail](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/marsupialtail/32/1950_2.png) [@marsupialtail](https://discuss.ray.io/u/marsupialtail)\
**Post date:** [April 13, 2022, 5:41pm UTC](https://discuss.ray.io/t/how-to-set-ray-worker-timeout/5779/1 "2022-04-13T17:41:40Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

It seems like I am running into similar scalability problems as [Poor spillback scheduling behavior in large clusters · Issue #10150 · ray-project/ray · GitHub](https://github.com/ray-project/ray/issues/10150), and I would like to configure the ray worker register timeout. From this PR it seems like it is now possible: [[Core] Make worker\_register\_timeout\_seconds configurable by yncxcw · Pull Request #9221 · ray-project/ray · GitHub](https://github.com/ray-project/ray/pull/9221)

Can someone show me how to do it in Python?

I am now aware of the \_system config option in ray.init. Can someone show how to do that when I am using ray start from the command line to set up the head node?

---

<div class="post-metadata">

**Author:** ![sangcho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sangcho/32/425_2.png) [@sangcho](https://discuss.ray.io/u/sangcho)\
**Post date:** [April 18, 2022, 1:03pm UTC](https://discuss.ray.io/t/how-to-set-ray-worker-timeout/5779/2 "2022-04-18T13:03:15Z")

</div>

You can set the env var. `RAY_ worker_register_timeout_seconds ` (suffix RAY\_ to system config defined within `ray_config.h`)
