예제 #1
0
def main3(i, q):
    dne = q.task_done
    qget = q.get

    while True:
        filename, brandname, catname, l = qget()
        code6_allinone3.main(filename, brandname, catname, l)
        time.sleep(2)
        dne()
예제 #2
0
mp_num_fetch_threads = 5
mp_enclosure_queue = multiprocessing.Queue()



>>>>>>> a0099e0a269d70bd87a7493005e633efedffbbb1
logging.basicConfig(level=logging.DEBUG,
                    format='[%(levelname)s] (%(threadName)-10s) %(message)s',
		                        )

def main2(i, q):
    while True:
<<<<<<< HEAD
        filename, brandname, catname, l = q.get()
        code6_allinone3.main(filename, brandname, catname, l)
=======
        pth = q.get()
	logging.debug(pth)
        code6_allinone.main(pth)
>>>>>>> a0099e0a269d70bd87a7493005e633efedffbbb1
        time.sleep(2)
        #q.task_done()
    
    

<<<<<<< HEAD
def main(pth_list):

    for i in range(num_fetch_threads):
        #worker = Thread(target=main2, args=(i, enclosure_queue,))