def _process_operations(is_no_loop, operations): if is_no_loop: new_ops = phlsys_scheduleunreliables.process_once(list(operations)) if new_ops != set(operations): print 'ERROR: some operations failed' sys.exit(1) else: phlsys_scheduleunreliables.process_loop_forever(list(operations))
def process_once(): return phlsys_scheduleunreliables.process_once(list(operations))