airflow.providers.databricks.plugins.databricks_workflow
¶
Module Contents¶
Classes¶
Constructs a link to monitor a Databricks Job Run. |
|
Constructs a link to send a request to repair all failed tasks in the Databricks workflow. |
|
Construct a link to send a repair request for a single databricks task. |
|
Repair databricks tasks from Airflow. |
|
Databricks Workflows plugin for Airflow. |
Functions¶
|
Return a list of all Databricks task IDs for a dictionary of Airflow tasks. |
|
Retrieve the launch task ID from the current task group or a parent task group, recursively. |
|
|
|
Attributes¶
- airflow.providers.databricks.plugins.databricks_workflow.get_databricks_task_ids(group_id, task_map, log)[source]¶
Return a list of all Databricks task IDs for a dictionary of Airflow tasks.
- airflow.providers.databricks.plugins.databricks_workflow.get_launch_task_id(task_group)[source]¶
Retrieve the launch task ID from the current task group or a parent task group, recursively.
- Parameters
task_group (airflow.utils.task_group.TaskGroup) – Task Group to be inspected
- Returns
launch Task ID
- Return type
- airflow.providers.databricks.plugins.databricks_workflow.get_task_instance(operator, dttm, session=NEW_SESSION)[source]¶
- class airflow.providers.databricks.plugins.databricks_workflow.WorkflowJobRunLink(context=None)[source]¶
Bases:
airflow.models.BaseOperatorLink
,airflow.utils.log.logging_mixin.LoggingMixin
Constructs a link to monitor a Databricks Job Run.
- get_link(operator, dttm=None, *, ti_key=None)[source]¶
Link to external system.
Note: The old signature of this function was
(self, operator, dttm: datetime)
. That is still supported at runtime but is deprecated.- Parameters
operator (airflow.models.BaseOperator) – The Airflow operator object this link is associated to.
ti_key (airflow.models.taskinstance.TaskInstanceKey | None) – TaskInstance ID to return link for.
- Returns
link to external system
- Return type
- class airflow.providers.databricks.plugins.databricks_workflow.WorkflowJobRepairAllFailedLink(context=None)[source]¶
Bases:
airflow.models.BaseOperatorLink
,airflow.utils.log.logging_mixin.LoggingMixin
Constructs a link to send a request to repair all failed tasks in the Databricks workflow.
- get_link(operator, dttm=None, *, ti_key=None)[source]¶
Link to external system.
Note: The old signature of this function was
(self, operator, dttm: datetime)
. That is still supported at runtime but is deprecated.- Parameters
operator – The Airflow operator object this link is associated to.
ti_key (airflow.models.taskinstance.TaskInstanceKey | None) – TaskInstance ID to return link for.
- Returns
link to external system
- Return type
- class airflow.providers.databricks.plugins.databricks_workflow.WorkflowJobRepairSingleTaskLink(context=None)[source]¶
Bases:
airflow.models.BaseOperatorLink
,airflow.utils.log.logging_mixin.LoggingMixin
Construct a link to send a repair request for a single databricks task.
- get_link(operator, dttm=None, *, ti_key=None)[source]¶
Link to external system.
Note: The old signature of this function was
(self, operator, dttm: datetime)
. That is still supported at runtime but is deprecated.- Parameters
operator – The Airflow operator object this link is associated to.
ti_key (airflow.models.taskinstance.TaskInstanceKey | None) – TaskInstance ID to return link for.
- Returns
link to external system
- Return type
- class airflow.providers.databricks.plugins.databricks_workflow.RepairDatabricksTasks[source]¶
Bases:
airflow.www.views.AirflowBaseView
,airflow.utils.log.logging_mixin.LoggingMixin
Repair databricks tasks from Airflow.
- class airflow.providers.databricks.plugins.databricks_workflow.DatabricksWorkflowPlugin[source]¶
Bases:
airflow.plugins_manager.AirflowPlugin
Databricks Workflows plugin for Airflow.
See also
For more information on how to use this plugin, take a look at the guide: DatabricksWorkflowPlugin