Ray wait - duplicate object refs in Ready

I am trying to debug something in Ray.
I have set up the code like this:

    while len(dataframes) < len(oi):
        ready, not_ready = ray.wait(oi)
        dataframes += ray.get(ready)

but I have realised that the printed ready object references are duplicated - I expected them to be unique with every iteration. I am probably doing something wrong, any clarificatino is appreciated thank you!

Hi @Antonia_Calvi if you wait on the same list of object refs, the result in your example will be the same.
you need to update the oi in each iteration too.