this restart functionality is mainly a feature available through UI. I was trying to find the original PR that added Restarts but couldn't find it -
this is one example PR
What I want to say is: restart is a complex operation that requires many steps, this couldn't be solved with a single mutation