Remove the old task restart code from UpdateTask
https://redmine.teklia.com/issues/6515
Follow-up of #1709 (closed): the UpdateTask
and PartialUpdateTask
endpoints must no longer support updating a task's state to pending
, so they now only support updating from running
to stopping
.