Revert "Delete ttl index from queue.py code (#1378)"
This reverts commit 47ea65b2567db4482579cd7000393cf0a15b412e.
Revert "Delete ttl index from queue.py code (#1378)": This reverts commit 47ea65b2567db4482579cd7000393cf0a15b412e.