Skip to main content

task_runs

Creates, updates, deletes, gets or lists a task_runs resource.

Overview

Nametask_runs
TypeResource
Iddatabricks_workspace.cleanrooms.task_runs

Fields

The following fields are returned by SELECT queries:

Request completed successfully.

NameDatatypeDescription
notebook_namestring
output_schema_namestring
collaborator_job_run_infoobject
notebook_job_run_stateobject
output_schema_expiration_timeinteger
run_durationinteger
start_timeinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdeployment_nameList all the historical notebook task runs in a clean room.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

List all the historical notebook task runs in a clean room.

SELECT
notebook_name,
output_schema_name,
collaborator_job_run_info,
notebook_job_run_state,
output_schema_expiration_time,
run_duration,
start_time
FROM databricks_workspace.cleanrooms.task_runs
WHERE deployment_name = '{{ deployment_name }}' -- required;