Correct task scheduling

In case there are no future recordings only the first task would be
served.