# Using ray.util.queue between python processes

**URL:** <https://discuss.ray.io/t/using-ray-util-queue-between-python-processes/3672>\
**Category:** Ray Core\
**Created:** [September 29, 2021, 6:28pm UTC](https://discuss.ray.io/t/using-ray-util-queue-between-python-processes/3672 "2021-09-29T18:28:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdullahffsm](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@abdullahffsm](https://discuss.ray.io/u/abdullahffsm)\
**Post date:** [September 29, 2021, 6:28pm UTC](https://discuss.ray.io/t/using-ray-util-queue-between-python-processes/3672/1 "2021-09-29T18:28:40Z")

</div>

Hi, Is there a way to pass messages between different python processes/interpreters using the ray.util.queue? I have one process that generates different ray.tune tasks and another that runs them. Both are connected to the same ray cluster using the ray.init(…) command. The examples/tutorials all use a single python process/interpreter.

I am using ray v1.6.

---

<div class="post-metadata">

**Author:** ![yic](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yic/32/437_2.png) [@yic](https://discuss.ray.io/u/yic)\
**Post date:** [September 30, 2021, 10:19pm UTC](https://discuss.ray.io/t/using-ray-util-queue-between-python-processes/3672/2 "2021-09-30T22:19:29Z")

</div>

Do you want to give named actor a try? ([Using Actors — Ray v1.6.0](https://docs.ray.io/en/latest/actors.html#named-actors))

What you can do is to create a named actor, push to this actor and another thread read from this actor and pull.

---

<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:** [February 22, 2023, 6:20am UTC](https://discuss.ray.io/t/using-ray-util-queue-between-python-processes/3672/3 "2023-02-22T06:20:33Z")

</div>

Is there any way to fetch queue directly by it’s name?
