update task_spec