Queue pop from specific index

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

  • Medium: It contributes to significant difficulty to complete my task, but I can work around it.

I am using ray.util.queue.Queue.

I am building a feature where I want to control the queue size, and if queue is full it should removed a value from random index. For that, is ray providing any functionality to pop a value from specific index from queue?

@shyampatel ray.uti.queue.Queue does not have a specific pop(index) since it’s uses the FIFO semantics of Queue for put (insert at the end) and get (from the front), as the docs suggest.

Internally, Queue is implemented as a QueueActor, which is a wrapper around Python asyncio.Queue.

Neither has a pop(index) function.

1 Like