Update the task.state when the redundancy is changed. Closes #584