Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PipelineRun.getSteps returns list of Step objects, not StepRun #1933

Open
bdfisk opened this issue Aug 10, 2023 · 1 comment
Open

PipelineRun.getSteps returns list of Step objects, not StepRun #1933

bdfisk opened this issue Aug 10, 2023 · 1 comment

Comments

@bdfisk
Copy link

bdfisk commented Aug 10, 2023

  • Package Name: azureml-sdk[notebooks]
  • Package Version: 1.52.0
  • Operating System: Ubuntu 20.04.4 LTS
  • Python Version: 3.9.5

Describe the bug
When using function getSteps() of the class azureml.pipeline.core.PipelineRun, the returned object is a list of Step objects, not StepRun objects as described in the documentation.

To Reproduce
Steps to reproduce the behavior:
pipe_run = PipelineRun(experiment=exper, run_id=pipeline_runs[0].get_details()['runId']) step_run = pipe_run.find_step_run('cold_start_handling_knn_step')[0] step_run.get_output_data('recommendations_all')

Expected behavior
I expect to get a list of StepRun objects from the function find_step_run, but get a list of Run objects. Therefore, I cannot get the output using the get_outputs or get_output_data functions as those are only available for the StepRun objects.

Screenshots
image

@bdfisk
Copy link
Author

bdfisk commented Aug 10, 2023

One workaround I found is creating a StepRun instance using the id from the retrieved Step object, confirming that there were StepRuns available. It would be better if a StepRun object is directly returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant