예제 #1
0
파일: TestHPSync.py 프로젝트: sridwan/meong
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()
예제 #2
0
파일: core2.py 프로젝트: sridwan/meong
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()