Skip to content

Instantly share code, notes, and snippets.



Created May 15, 2020
What would you like to do?
Get run_id of training run in Azure Machine Learning Pipeline Step


run.tag('run_type', value='training')

In later step:

#Retrieve associated run, workspace and experiment
run = Run.get_context()
ws = run.experiment.workspace
exp = run.experiment
parent_run = run.parent

# Retrieve training run via parent run of pipeline
training_run = list(parent_run.get_children(tags={'run_type': 'training'}))[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment