code: async def restart(request):
      
      def wait_and_restart():
          log.info('Restarting server')
          sleep(1)
          os.system('kill 1')
      Thread(target=wait_and_restart).start()
      return web.json_response({"message": "restarting"})
docs: Returns OK, then waits approximately 1 second and restarts container