コード例 #1
0
ファイル: _svr_types.py プロジェクト: vinodchitrali/pbspro
 def reject(self, emsg="", ecode=255):
     """
     reject([msg])
        Terminates hook execution and instructs PBS to not perform the
        associated event request action. If [msg] argument is given, it
             will be shown in the appropriate PBS daemon log, and the STDERR
        of the PBS command that caused this event to take place.
        If [ecode] argument is given, if will be used as the value for 
        the SystemExit exception, else a value of 255 is used.
     
        This terminates hook execution by throwing a SystemExit exception.
     """
     _event_reject(emsg)
     _event_param_mod_disallow()
     raise SystemExit, str(ecode)
コード例 #2
0
ファイル: _svr_types.py プロジェクト: A9-William/pbspro
 def reject(self, emsg="", ecode=255):
     """
     reject([msg])
        Terminates hook execution and instructs PBS to not perform the
        associated event request action. If [msg] argument is given, it
             will be shown in the appropriate PBS daemon log, and the STDERR
        of the PBS command that caused this event to take place.
        If [ecode] argument is given, if will be used as the value for 
        the SystemExit exception, else a value of 255 is used.
     
        This terminates hook execution by throwing a SystemExit exception.
     """
     _event_reject(emsg)
     _event_param_mod_disallow()
     raise SystemExit, str(ecode)