Skip to main content

clean_room_task_runs

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

Overview

Nameclean_room_task_runs
TypeResource
Iddatabricks_workspace.cleanrooms.clean_room_task_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the executable.
analysis_detailsobjectInformation about the analysis run (etag, updated at)
collaborator_job_run_infoobjectJob run info of the task in the runner's local workspace. This field is only included in the LIST API if the task was run within the same workspace the API is being called. If the task run was in a different workspace under the same metastore, only the workspace_id is included.
output_infoobjectInformation about run output
run_durationintegerDuration of the task run, in milliseconds.
shared_output_infoobjectInformation about shared output accessible by all collaborators. This field is only populated when enable_shared_output is true.
start_timeintegerWhen the task run started, in epoch milliseconds.
task_run_statestringState of the task run.
task_typestringCreate a collection of name/value pairs.<br /><br />Example enumeration:<br /><br />&gt;&gt;&gt; class Color(Enum):<br />... RED = 1<br />... BLUE = 2<br />... GREEN = 3<br /><br />Access them by:<br /><br />- attribute access:<br /><br /> &gt;&gt;&gt; Color.RED<br /> &lt;Color.RED: 1&gt;<br /><br />- value lookup:<br /><br /> &gt;&gt;&gt; Color(1)<br /> &lt;Color.RED: 1&gt;<br /><br />- name lookup:<br /><br /> &gt;&gt;&gt; Color['RED']<br /> &lt;Color.RED: 1&gt;<br /><br />Enumerations can be iterated over, and know how many members they have:<br /><br />&gt;&gt;&gt; len(Color)<br />3<br /><br />&gt;&gt;&gt; list(Color)<br />[&lt;Color.RED: 1&gt;, &lt;Color.BLUE: 2&gt;, &lt;Color.GREEN: 3&gt;]<br /><br />Methods can be added to enumerations, and members can have their own<br />attributes -- see the documentation for details. (JAR, NOTEBOOK)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
clean_room_task_runs_list_clean_room_task_runs_handlerselectclean_room_name, deployment_namename, page_size, page_token, task_typeList all the historical 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
clean_room_namestringName of the clean room.
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
namestringExecutable name.
page_sizeintegerThe maximum number of task runs to return. Maximum value of 100.
page_tokenstringOpaque pagination token to go to next page based on previous query.
task_typestringFilter by the type of Clean Room task.

SELECT examples

List all the historical task runs in a clean room.

SELECT
name,
analysis_details,
collaborator_job_run_info,
output_info,
run_duration,
shared_output_info,
start_time,
task_run_state,
task_type
FROM databricks_workspace.cleanrooms.clean_room_task_runs
WHERE clean_room_name = '{{ clean_room_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND name = '{{ name }}'
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
AND task_type = '{{ task_type }}'
;