Fixed learn_period::get_pending_tasks()