Beispiel #1
0
def process(sync):
    """Start the queue and process tasks as they come. Blocks while waiting"""
    worker = IngestWorker(stages=[Stage.INGEST])
    if sync:
        worker.sync()
    else:
        worker.run()
Beispiel #2
0
def process(sync):
    setup_debugpy_server(settings.DEBUGPY_PROCESS,
                         settings.DEBUGPY_WAIT_FOR_CLIENT)
    """Start the queue and process tasks as they come. Blocks while waiting"""
    worker = IngestWorker(stages=STAGES)
    if sync:
        worker.sync()
    else:
        worker.run()
Beispiel #3
0
def process(sync):
    """Start the queue and process tasks as they come. Blocks while waiting"""
    num_threads = None if sync else sl_settings.WORKER_THREADS
    worker = IngestWorker(stages=STAGES, num_threads=num_threads)
    code = worker.run()
    sys.exit(code)