change schedule api; add task_tries