Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak committed Nov 29, 2024
1 parent 755c36f commit c1b5a4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/zenml/zen_stores/schemas/pipeline_run_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ def to_model(
else {}
)

run_metadata = self.fetch_metadata()

if self.deployment is not None:
deployment = self.deployment.to_model()

Expand Down Expand Up @@ -375,7 +373,7 @@ def to_model(
}
metadata = PipelineRunResponseMetadata(
workspace=self.workspace.to_model(),
run_metadata=run_metadata,
run_metadata=self.fetch_metadata(),
config=config,
steps=steps,
start_time=self.start_time,
Expand Down
4 changes: 1 addition & 3 deletions src/zenml/zen_stores/schemas/step_run_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ def to_model(
RuntimeError: If the step run schema does not have a deployment_id
or a step_configuration.
"""
run_metadata = self.fetch_metadata()

input_artifacts = {
artifact.name: StepRunInputResponse(
input_type=StepRunInputArtifactType(artifact.type),
Expand Down Expand Up @@ -316,7 +314,7 @@ def to_model(
pipeline_run_id=self.pipeline_run_id,
original_step_run_id=self.original_step_run_id,
parent_step_ids=[p.parent_id for p in self.parents],
run_metadata=run_metadata,
run_metadata=self.fetch_metadata(),
)

resources = None
Expand Down
13 changes: 0 additions & 13 deletions tests/integration/functional/utils/__init__.py

This file was deleted.

0 comments on commit c1b5a4c

Please sign in to comment.