Skip to content

Commit

Permalink
Add matrix resolution step to avoid non-resolved DAGs with matrix ope…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
polyaxon-ci committed Nov 4, 2023
1 parent 4c72856 commit 9151818
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions haupt/haupt/orchestration/scheduler/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,26 @@ def _resolve_joins_params(self):
]
self.params.update(self._resolve_joins())

def _resolve_matrix_params(self):
if self.compiled_operation.matrix:
self.apply_params(should_be_resolved=False)
self.compiled_operation.matrix = (
self.compiled_operation.matrix.__class__.read(
CompiledOperationSpecification.apply_section_contexts(
config=self.compiled_operation,
section=self.compiled_operation.matrix.to_dict(),
param_spec=self.param_spec,
)
)
)

def resolve_edges(self):
self._resolve_edges(run=self.run)

def resolve_params(self):
self.params = self._resolve_params(run=self.run)
self._resolve_joins_params()
self._resolve_matrix_params()

def resolve_io(self):
if self.compiled_operation.inputs:
Expand Down

0 comments on commit 9151818

Please sign in to comment.