Exemplo n.º 1
0
def run(target, address=DEFAULT_ADDRESS, progressbar=True, log_level=DEFAULT_LOG_LEVEL):
    from taskmaster.client import Consumer, Client

    client = Client(address, log_level=log_level)

    consumer = Consumer(client, target, progressbar=progressbar, log_level=log_level)
    consumer.start()
Exemplo n.º 2
0
def run(target, address="tcp://127.0.0.1:3050", progressbar=True, log_level="INFO"):
    from taskmaster.client import Consumer, Client

    client = Client(address, log_level=log_level)

    consumer = Consumer(client, target, progressbar=progressbar, log_level=log_level)
    consumer.start()
Exemplo n.º 3
0
def run(target, address='tcp://127.0.0.1:3050', progressbar=True):
    from taskmaster.client import Consumer, Client

    client = Client(address)

    consumer = Consumer(client, target, progressbar=progressbar)
    consumer.start()
Exemplo n.º 4
0
def run(target, address=DEFAULT_ADDRESS, progressbar=True,
        log_level=DEFAULT_LOG_LEVEL, retries=DEFAULT_RETRIES, timeout=DEFAULT_TIMEOUT):
    from taskmaster.client import Consumer, Client

    client = Client(address, log_level=log_level, retries=retries,
            timeout=timeout)

    consumer = Consumer(client, target, progressbar=progressbar, log_level=log_level)
    consumer.start()
Exemplo n.º 5
0
def run(target, address=DEFAULT_ADDRESS, progressbar=True,
        log_level=DEFAULT_LOG_LEVEL, retries=DEFAULT_RETRIES,
        timeout=DEFAULT_TIMEOUT):
    from taskmaster.client import Consumer, Client

    client = Client(address, log_level=log_level, retries=retries,
                    timeout=timeout)

    consumer = Consumer(client, target, progressbar=progressbar,
                        log_level=log_level)
    consumer.start()