Ejemplo n.º 1
0
    def accept(self, ecode=0):
        """
        accept([ecode])
           Terminates hook execution and causes PBS to perform the
           associated event request action. If [ecode] argument is given,
           it will be used as the value for the SystemExit exception, else
           a value of 0 is used.

           This terminates hook execution by throwing a SystemExit exception.
        """
        _event_accept()
        _event_param_mod_disallow()
        raise SystemExit, str(ecode)
Ejemplo n.º 2
0
    def accept(self, ecode=0):
        """
        accept([ecode])
           Terminates hook execution and causes PBS to perform the
           associated event request action. If [ecode] argument is given,
           it will be used as the value for the SystemExit exception, else
           a value of 0 is used.

           This terminates hook execution by throwing a SystemExit exception.
        """
        _event_accept()
        _event_param_mod_disallow()
        raise SystemExit, str(ecode)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)