Skip to content

Commit 1b7445c

Browse files
authored
Submitting a Command job created using the __call__ method on another Command is missing outputs Azure#39187 (Azure#39241)
* fixing an error where output is getting lost while cloning command * updating change log
1 parent 3fdf515 commit 1b7445c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sdk/ml/azure-ai-ml/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Features Added
66

77
### Bugs Fixed
8+
- #39187 - Submitting a Command job created using the __call__ method on another Command is missing outputs
89

910
## 1.24.0 (2025-01-07)
1011

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_builders/command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ def __call__(self, *args: Any, **kwargs: Any) -> "Command":
928928
# use setattr here to make sure owner of input won't change
929929
if not isinstance(original_output, str):
930930
setattr(node.outputs, name, original_output._data)
931+
node._job_outputs[name] = original_output._data
931932
self._refine_optional_inputs_with_no_value(node, kwargs)
932933
# set default values: compute, environment_variables, outputs
933934
# won't copy name to be able to distinguish if a node's name is assigned by user

0 commit comments

Comments
 (0)