soonq/worker.py
def start_worker_process(queue_name):
    """Start a process with a Worker on the queue of the given name."""
    popen_kwargs = dict(
        args=[sys.executable, "-m", "soonq.commands.start_worker", queue_name],
    )
    if platform.system() == "Windows":
        popen_kwargs["creationflags"] = CREATE_NEW_CONSOLE
    else:
        # "If shell is True, it is recommended to pass args as a
        # string rather than as a sequence."
        # https://docs.python.org/3/library/subprocess.html#subprocess.Popen
        popen_kwargs["args"] = " ".join(popen_kwargs["args"])
        popen_kwargs["shell"] = True
    popen_kwargs["universal_newlines"] = True
    # Poll for task completion and further directives.
    Popen(**popen_kwargs)
Start a process with a Worker on the queue of the given name.
Start a process with a Worker on the queue of the given name.
Start a process with a Worker on the queue of the given name .
def start_worker_process(queue_name):
    popen_kwargs = dict(
        args=[sys.executable, "-m", "soonq.commands.start_worker", queue_name],
    )
    if platform.system() == "Windows":
        popen_kwargs["creationflags"] = CREATE_NEW_CONSOLE
    else:
        popen_kwargs["args"] = " ".join(popen_kwargs["args"])
        popen_kwargs["shell"] = True
    popen_kwargs["universal_newlines"] = True
    Popen(**popen_kwargs)
def start_worker_process ( queue_name ) : popen_kwargs = dict ( args = [ sys . executable , "-m" , "soonq.commands.start_worker" , queue_name ] , ) if platform . system ( ) == "Windows" : popen_kwargs [ "creationflags" ] = CREATE_NEW_CONSOLE else : popen_kwargs [ "args" ] = " " . join ( popen_kwargs [ "args" ] ) popen_kwargs [ "shell" ] = True popen_kwargs [ "universal_newlines" ] = True Popen ( ** popen_kwargs )
Start a process with a Worker on the queue of the given name.
Start a process with a Worker on the queue of the given name .
"""Start a process with a Worker on the queue of the given name.""" # "If shell is True, it is recommended to pass args as a # string rather than as a sequence." # https://docs.python.org/3/library/subprocess.html#subprocess.Popen # Poll for task completion and further directives.
queue_name