def create ( parallel ) : queue = { k : v for k , v in parallel . items ( ) if k in [ "queue" , "cores_per_job" , "mem" ] } yield queue
returning multiple values in a queue python multiprocesss
Create a queue based on the provided parallel arguments .
def create(parallel):
    """Create a queue based on the provided parallel arguments.

    TODO Startup/tear-down. Currently using default queue for testing
    """
    queue = {k: v for k, v in parallel.items() if k in ["queue", "cores_per_job", "mem"]}
    yield queue