task_reset function

Reset Task Status to Idle