Made some changes to the ScaleoutTaskQueue.
- Fixed the drain from the previous queue.
- Only send if state is connected in redis.