# Ray.util.queue WARNING

**URL:** <https://discuss.ray.io/t/ray-util-queue-warning/2042>\
**Category:** Ray Core\
**Created:** [May 4, 2021, 7:28pm UTC](https://discuss.ray.io/t/ray-util-queue-warning/2042 "2021-05-04T19:28:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunray](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sunray](https://discuss.ray.io/u/sunray)\
**Post date:** [May 4, 2021, 7:28pm UTC](https://discuss.ray.io/t/ray-util-queue-warning/2042/1 "2021-05-04T19:28:27Z")

</div>

I am using Ray Queue based on extant examples and I see this WARNING in ray 1.1.0:

`WARNING worker.py:1354 -- Using blocking ray.get inside async actor. This blocks the event loop. Please use `await` on object ref with asyncio.gather if you want to yield execution to the event loop instead.`

Does this matter or should I ignore it? My actor that consumes the queue has nothing to do when it waits for an item from the queue in ray.get() ; mentioning the event loop makes me think Ray requires this. The examples for using ray.util.queue did not use the await keyword.

(My workers are getting items from the queue, I just I am not sweeping an important warning under the carpet.)

---

<div class="post-metadata">

**Author:** ![simon-mo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/simon-mo/32/9_2.png) [@simon-mo](https://discuss.ray.io/u/simon-mo)\
**Post date:** [May 4, 2021, 7:33pm UTC](https://discuss.ray.io/t/ray-util-queue-warning/2042/2 "2021-05-04T19:33:25Z")

</div>

Can you try newer version of ray? say `ray==1.3.0`.

---

<div class="post-metadata">

**Author:** ![sunray](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sunray](https://discuss.ray.io/u/sunray)\
**Post date:** [May 4, 2021, 7:56pm UTC](https://discuss.ray.io/t/ray-util-queue-warning/2042/3 "2021-05-04T19:56:32Z")

</div>

Ray 1.3.0 has the same warning, different line number:

`WARNING worker.py:1456 -- Using blocking ray.get inside async actor. This blocks the event loop. Please use `await` on object ref with asyncio.gather if you want to yield execution to the event loop instead.`

---

<div class="post-metadata">

**Author:** ![simon-mo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/simon-mo/32/9_2.png) [@simon-mo](https://discuss.ray.io/u/simon-mo)\
**Post date:** [May 4, 2021, 8:47pm UTC](https://discuss.ray.io/t/ray-util-queue-warning/2042/4 "2021-05-04T20:47:56Z")

</div>

Looking into it. btw this warning can be ignored 🙂

---

<div class="post-metadata">

**Author:** ![sunray](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sunray](https://discuss.ray.io/u/sunray)\
**Post date:** [May 4, 2021, 11:39pm UTC](https://discuss.ray.io/t/ray-util-queue-warning/2042/5 "2021-05-04T23:39:40Z")

</div>

Thanks for looking at it. The situation (Using blocking ray.get inside async actor) is typical of the ray.util.queue usage.
