Added Redis queue state handling