def run_mailer_in_parallel(processor, max_num_processes):
    max_num_processes = int(max_num_processes)
    if (max_num_processes < 1):
        raise Exception
    processor.max_num_processes = max_num_processes
    processor.run(parallel=True)
def run_mailer_in_parallel(processor, max_num_processes):
    max_num_processes = int(max_num_processes)
    if (max_num_processes < 1):
        raise Exception
    processor.max_num_processes = max_num_processes
    processor.run(parallel=True)