question

NikkiMirova-5940 avatar image
0 Votes"
NikkiMirova-5940 asked Jaya-0415 commented

Cancel all child runs in Azure ML

How to I properly cancel all child runs in an Azure ML experiment? When I use the code below as expected from documentation, I get an error. "RunConfigurationException:
Message: Error in deserialization. dict fields don't have list element type information. field=output_data, list_element_type=<class 'azureml.core.runconfig.OutputData'>...} with exception init() missing 2 required positional arguments: 'datastore_name' and 'relative_path'"

run = Run.get(ws, 'run-id-123456789')

for child in run.get_children():
print(child.get_details())
try:
child.cancel()
except Exception as e:
print(e)
continue

The datasets and runs were configured properly because they run just fine.

azure-machine-learning
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @NikkiMirova-5940

Thanks for reaching out to us, I will check with the pm to which is the recommend way to cancel all child runs and let you know.

Regards,
Yutong


0 Votes 0 ·

1 Answer

Jaya-0415 avatar image
0 Votes"
Jaya-0415 answered Jaya-0415 commented

You should cancel all the children run by canceling the parent.

Any benefit to cancel child once a time? Just curious

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Canceling the parent run does not cancel all its children. But anyway, the reason my code wasn't working was because of a bug in Azure ML. The support team has fixed the bug so I can cancel now.

0 Votes 0 ·
Jaya-0415 avatar image Jaya-0415 NikkiMirova-5940 ·

Good to know that

0 Votes 0 ·