Execute one task a time by using Redis lock