# Timeout for ray.get\_actor() function

**URL:** <https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698>\
**Category:** Ray Core\
**Created:** [May 17, 2023, 12:51pm UTC](https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698 "2023-05-17T12:51:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyampatel](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shyampatel](https://discuss.ray.io/u/shyampatel)\
**Post date:** [May 17, 2023, 12:51pm UTC](https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698/1 "2023-05-17T12:51:24Z")

</div>

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

- High: It blocks me to complete my task.

I am creating actors with unique name and lifetime detached. Now sometimes, when I am trying to access it by name, the get\_actor call is blocking the functionality (Though actor is alive). Is there any way to add **timeout** in **ray.get\_actor()** function.

---

<div class="post-metadata">

**Author:** ![cade](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/cade/32/3837_2.png) [@cade](https://discuss.ray.io/u/cade)\
**Post date:** [May 17, 2023, 5:59pm UTC](https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698/2 "2023-05-17T17:59:49Z")

</div>

Hi @shyampatel ! [The docs](https://docs.ray.io/en/latest/ray-core/api/doc/ray.get_actor.html) say the following:

> This method is a sync call and it’ll timeout after 60s. This can be modified by setting OS env RAY\_gcs\_server\_request\_timeout\_seconds before starting the cluster.

Can you try this out and see if it unblocks you?

---

<div class="post-metadata">

**Author:** ![shyampatel](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shyampatel](https://discuss.ray.io/u/shyampatel)\
**Post date:** [May 23, 2023, 4:21am UTC](https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698/3 "2023-05-23T04:21:10Z")

</div>

Yes, get\_actor is being released when I tested separately. Still, I am facing issue in my pipeline so I think there could be some other blocking issues. Thanks for your support.

---

<div class="post-metadata">

**Author:** ![jjyao](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jjyao/32/1799_2.png) [@jjyao](https://discuss.ray.io/u/jjyao)\
**Post date:** [May 24, 2023, 4:19pm UTC](https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698/4 "2023-05-24T16:19:57Z")

</div>

Hi @shyampatel,

Anything else we can help you on this?

---

<div class="post-metadata">

**Author:** ![shyampatel](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shyampatel](https://discuss.ray.io/u/shyampatel)\
**Post date:** [May 24, 2023, 4:41pm UTC](https://discuss.ray.io/t/timeout-for-ray-get-actor-function/10698/5 "2023-05-24T16:41:39Z")

</div>

Actually Yes, But trying to reproduce the scenario so that it will be easier to explain. Will take some time and update here.
