Skip to content

Commit

Permalink
Remove unavailable upstream steps during cache precomputation (#3146)
Browse files Browse the repository at this point in the history
  • Loading branch information
schustmi authored Oct 28, 2024
1 parent 5948af2 commit d786f64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/zenml/orchestrators/base_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ def run(
# the orchestrator does not try to run them
deployment.step_configurations.pop(invocation_id)

for step in deployment.step_configurations.values():
for invocation_id in cached_invocations:
if invocation_id in step.spec.upstream_steps:
step.spec.upstream_steps.remove(invocation_id)

if len(deployment.step_configurations) == 0:
# All steps were cached, we update the pipeline run status and
# don't actually use the orchestrator to run the pipeline
Expand Down

0 comments on commit d786f64

Please sign in to comment.