backported redis queue migration