implement TaskScheduler::get_new_task