Пример #1
0
def task_queue_generator_func(arguments, output, repeat):
    tasks_data = InputHelper.process_data_for_tasks_iterator(arguments)
    tasks_count = tasks_data["tasks_count"]
    yield tasks_count
    tasks_generator_func = InputHelper.make_tasks_generator_func(tasks_data)
    for i in range(repeat):
        tasks_iterator = tasks_generator_func()
        for task in tasks_iterator:
            output.terminal(Level.THREAD, task.name(), "Added to Queue")
            yield task
Пример #2
0
def task_queue_generator_func(arguments, output, repeat):
    tasks_data = InputHelper.process_data_for_tasks_iterator(arguments)
    tasks_count = tasks_data["tasks_count"]
    yield tasks_count
    tasks_generator_func = InputHelper.make_tasks_generator_func(tasks_data)
    for i in range(repeat):
        tasks_iterator = tasks_generator_func()
        for task in tasks_iterator:
            output.terminal(Level.THREAD, task.name(), "Added to Queue")
            yield task
    print('Generated {} commands in total'.format(tasks_count))
    print('Repeat set to {}'.format(repeat))
Пример #3
0
def build_queue(arguments, output, repeat):
    task_list = InputHelper.process_commands(arguments)
    for task in task_list:
        output.terminal(Level.THREAD, task.name(), "Added to Queue")
    print('Generated {} commands in total'.format(len(task_list)))
    print('Repeat set to {}'.format(repeat))
    return task_list * repeat
Пример #4
0
def build_queue(arguments, output):
    queue = list()
    for command in InputHelper.process_commands(arguments):
        output.terminal(Level.THREAD, command, "Added to Queue")
        queue.append(command)
    return queue
Пример #5
0
def build_queue(arguments, output):
    task_list = InputHelper.process_commands(arguments)
    for task in task_list:
        output.terminal(Level.THREAD, task.name(), "Added to Queue")
    return task_list