astronomer.providers.microsoft.azure.hooks.data_factory

This module contains the Azure Data Factory hook’s asynchronous implementation.

Module Contents

Classes

AzureDataFactoryHookAsync

An Async Hook connects to Azure DataFactory to perform pipeline operations.

Functions

get_field(extras, field_name[, strict])

Get field from extra, first checking short name, then for backward compatibility we check for prefixed name.

provide_targeted_factory_async(func)

Provide the targeted factory to the async decorated function in case it isn't specified.

Attributes

Credentials

T

astronomer.providers.microsoft.azure.hooks.data_factory.Credentials
astronomer.providers.microsoft.azure.hooks.data_factory.T
astronomer.providers.microsoft.azure.hooks.data_factory.get_field(extras, field_name, strict=False)[source]

Get field from extra, first checking short name, then for backward compatibility we check for prefixed name.

astronomer.providers.microsoft.azure.hooks.data_factory.provide_targeted_factory_async(func)[source]

Provide the targeted factory to the async decorated function in case it isn’t specified.

If resource_group_name or factory_name is not provided it defaults to the value specified in the connection extras.

class astronomer.providers.microsoft.azure.hooks.data_factory.AzureDataFactoryHookAsync(azure_data_factory_conn_id)[source]

Bases: airflow.providers.microsoft.azure.hooks.data_factory.AzureDataFactoryHook

An Async Hook connects to Azure DataFactory to perform pipeline operations.

Parameters:

azure_data_factory_conn_id (str) – The Azure Data Factory connection id.

async get_async_conn()[source]

Get async connection and connect to azure data factory.

async get_pipeline_run(run_id, resource_group_name=None, factory_name=None, **config)[source]

Connect to Azure Data Factory asynchronously to get the pipeline run details by run id.

Parameters:
  • run_id (str) – The pipeline run identifier.

  • resource_group_name (str | None) – The resource group name.

  • factory_name (str | None) – The factory name.

async get_adf_pipeline_run_status(run_id, resource_group_name=None, factory_name=None)[source]

Connect to Azure Data Factory asynchronously and get the pipeline status by run_id.

Parameters:
  • run_id (str) – The pipeline run identifier.

  • resource_group_name (str | None) – The resource group name.

  • factory_name (str | None) – The factory name.