示例#1
0
def execute_task_cmd(task_module, task_name, inputs, output_prefix, raw_output_data_prefix, test):
    _click.echo(_utils.get_version_message())
    # Backwards compatibility - if Propeller hasn't filled this in, then it'll come through here as the original
    # template string, so let's explicitly set it to None so that the downstream functions will know to fall back
    # to the original shard formatter/prefix config.
    if raw_output_data_prefix == "{{.rawOutputDataPrefix}}":
        raw_output_data_prefix = None

    _execute_task(task_module, task_name, inputs, output_prefix, raw_output_data_prefix, test)
示例#2
0
def map_execute_task_cmd(
    inputs,
    output_prefix,
    raw_output_data_prefix,
    max_concurrency,
    test,
    resolver,
    resolver_args,
):
    _click.echo(_utils.get_version_message())

    _execute_map_task(
        inputs,
        output_prefix,
        raw_output_data_prefix,
        max_concurrency,
        test,
        resolver,
        resolver_args,
    )
示例#3
0
def execute_task_cmd(
    task_module, task_name, inputs, output_prefix, raw_output_data_prefix, test, resolver, resolver_args
):
    _click.echo(_utils.get_version_message())
    # Backwards compatibility - if Propeller hasn't filled this in, then it'll come through here as the original
    # template string, so let's explicitly set it to None so that the downstream functions will know to fall back
    # to the original shard formatter/prefix config.
    if raw_output_data_prefix == "{{.rawOutputDataPrefix}}":
        raw_output_data_prefix = None

    # For new API tasks (as of 0.16.x), we need to call a different function.
    # Use the presence of the resolver to differentiate between old API tasks and new API tasks
    # The addition of a new top-level command seemed out of scope at the time of this writing to pursue given how
    # pervasive this top level command already (plugins mostly).
    if not resolver:
        _click.echo("No resolver found, assuming legacy API task...")
        _legacy_execute_task(task_module, task_name, inputs, output_prefix, raw_output_data_prefix, test)
    else:
        _click.echo(f"Attempting to run with {resolver}...")
        _execute_task(inputs, output_prefix, raw_output_data_prefix, test, resolver, resolver_args)
示例#4
0
def execute_task_cmd(task_module, task_name, inputs, output_prefix, test):
    _click.echo(_utils.get_version_message())
    _execute_task(task_module, task_name, inputs, output_prefix, test)