示例#1
0
def start_workers(data_queues, settings, job_queue):
    global threads
    main_logger.info("Starting Workers")
    worker = Worker(data_queues, settings, job_queue)
    worker.daemon = True
    worker.start()
    threads.append({'name': 'Workers', 'thread': worker})
    return worker
示例#2
0
def start_workers(data_queues, settings, job_queue):
    main_logger.info("Starting Workers")
    worker = Worker(data_queues, settings, job_queue)
    worker.daemon = True
    worker.start()
    return worker