Working on  job-scheduler and task-gate