def set_wall_clock(wall_clock_limit): # type: (long) -> node """ Sets the application wall clock limit. :param wall_clock_limit: Wall clock limit in seconds. :return: None """ app_id = 0 if __debug__: logger.debug("Set a wall clock limit of " + str(wall_clock_limit)) # Activate wall clock limit alarm signal.signal(signal.SIGALRM, _wall_clock_exceed) signal.alarm(wall_clock_limit) # Call the Runtime to set a timer in case wall clock is reached in a synch COMPSs.set_wall_clock(app_id, wall_clock_limit)
def set_wall_clock(wall_clock_limit): # type: (int) -> None """ Sets the application wall clock limit. :param wall_clock_limit: Wall clock limit in seconds. :return: None """ with event_master(WALL_CLOCK_LIMIT_EVENT): app_id = 0 if __debug__: logger.debug("Set a wall clock limit of " + str(wall_clock_limit)) # Activate wall clock limit alarm signal.signal(signal.SIGALRM, _wall_clock_exceed) signal.alarm(wall_clock_limit) # Call the Runtime to set a timer in case wall clock is reached in a synch COMPSs.set_wall_clock(app_id, wall_clock_limit)