def _prHighPrioritySync(mypipe): shutdown = False hps = BaseSync() while not shutdown: job = hps.processSync() if not job: time.sleep(1) if mypipe.poll(): shutdown = mypipe.recv()
def prHighPrioritySync(): global core2log shutdown = False hps = BaseSync() while not shutdown: try: job = hps.processSync() if not job: time.sleep(1) except: errorstr = traceback.format_exc() print errorstr core2log.error('<HPSync>\n{0}'.format(errorstr)) raw_input()