code: async def restart(request: web.Request) -> web.Response:
      
      async with request.app[RESTART_LOCK_NAME]:
          asyncio.get_event_loop().call_later(1, _do_restart)
      return web.json_response({'message': 'Restarting in 1s'},
                               status=200)
docs: Restart the robot.
  
      Blocks while the restart lock is held.