code: def shutdown(self, status='SUCCEEDED', diagnostics=None):
          
          req = proto.ShutdownRequest(final_status=str(FinalStatus(status)),
                                      diagnostics=diagnostics)
          self._call('shutdown', req)
docs: Shutdown the application.
  
          Stop all running containers and shutdown the application.
  
          Parameters
          ----------
          status : FinalStatus, optional
              The final application status. Default is 'SUCCEEDED'.
          diagnostics : str, optional
              The application exit message, usually used for diagnosing failures.
              Can be seen in the YARN Web UI for completed applications under
              "diagnostics", as well as the ``diagnostic`` field of
              ``ApplicationReport`` objects. If not provided, a default will be
              used.