DatasetActionRun Class

Manage the execution of Dataset actions.

DatasetActionRun provides methods for monitoring the status of long running actions on datasets. It also provides a method to get the result of an action after completion.

Initialize a DatasetActionRun.

Inheritance
builtins.object
DatasetActionRun

Constructor

DatasetActionRun(workspace=None, dataset_id=None, action_id=None, action_request_dto=None)

Parameters

workspace
Workspace
Required

The workspace the Dataset is in.

dataset_id
str
Required

The Dataset ID.

action_id
str
Required

The Dataset action ID

action_request_dto
<xref:azureml._restclient.models.action_result_dto>
Required

The action request dto.

Methods

get_result

Get the result of completed Dataset action run.

wait_for_completion

Wait for the completion of Dataset action run.

get_result

Get the result of completed Dataset action run.

get_result()

Returns

The Dataset action result.

Return type

Union[<xref:azureml.dataprep.DataProfile>, None]

wait_for_completion

Wait for the completion of Dataset action run.

wait_for_completion(show_output=True, status_update_frequency=10)

Parameters

show_output
bool
default value: True

Indicates whether to print the output.

status_update_frequency
int
default value: 10

The action run status update frequency in seconds.

Remarks

This is a synchronous method. Call this if you have triggered a long running action on a dataset and you want to wait for the action to complete before proceeding. This method writes the status of the action run in the logs periodically, with the interval between updates determined by the status_update_frequency parameter.

The action returns when the action has completed. To inspect the result of the action, use get_result.