refactor TaskScheduler
refactor schedule complete