ScheduleTaskManager:
 - add method getPendingTasksCount
TaskManager:
 - remove unnecessary ORing with isCancelled, it is already accumulated in isDone