Update task status