Scheduler now inherit TaskManager.
Task implemented on the api.