separated the logic in server-scheduler-task
finished the params for tasks