Fix threading related issue where currently active Redis tasks were wrongly requeued