Skip to content

Commit

Permalink
feat: allow wanna to run pipeline in quick mode (#73)
Browse files Browse the repository at this point in the history
MLOPS-208 - allow wanna to run pipeline in quick mode
  • Loading branch information
jsilva authored Dec 8, 2022
1 parent 418d494 commit 8402ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wanna/cli/plugins/pipeline_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ def run(
file: Path = wanna_file_option,
profile_name: str = profile_name_option,
instance_name: str = instance_name_option("pipeline", "run"),
mode: PushMode = push_mode_option,
) -> None:
"""
Run the pipeline as specified in wanna-ml config. This command puts together build, push and run-manifest steps.
"""
config = load_config_from_yaml(file, gcp_profile_name=profile_name)
workdir = pathlib.Path(file).parent
pipeline_service = PipelineService(config=config, workdir=workdir, version=version)
pipeline_service = PipelineService(config=config, workdir=workdir, version=version, push_mode=mode)
manifests = pipeline_service.build(instance_name)
pipeline_service.push(manifests, local=False)
PipelineService.run([str(p) for p in manifests], extra_params=params, sync=sync)
Expand Down

0 comments on commit 8402ffe

Please sign in to comment.