Keep calling the fair_scheduler until it gives us the next task.
Merge pull request #404 from pooya/shayan/retry_on_timeout

Keep calling the fair_scheduler until it gives us the next task.