Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
schustmi committed Nov 22, 2024
1 parent c7bc6bc commit 278c696
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/zenml/pipelines/pipeline_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,12 +534,18 @@ def build(
"""
with track_handler(event=AnalyticsEvent.BUILD_PIPELINE):
self._prepare_if_possible()
deployment, _, _ = self._compile(
config_path=config_path or self._run_args.get("config_path"),
steps=step_configurations
or self._run_args.get("step_configurations"),
settings=settings,
)

compile_args = self._run_args.copy()
compile_args.pop("unlisted", None)
compile_args.pop("prevent_build_reuse", None)
if config_path:
compile_args["config_path"] = config_path
if step_configurations:
compile_args["step_configurations"] = step_configurations
if settings:
compile_args["settings"] = settings

deployment, _, _ = self._compile(**compile_args)
pipeline_id = self._register().id

local_repo = code_repository_utils.find_active_code_repository()
Expand Down

0 comments on commit 278c696

Please sign in to comment.