airflow.providers.google.cloud.triggers.bigquery_dts

Module Contents

Classes

BigQueryDataTransferRunTrigger

Triggers class to watch the Transfer Run state to define when the job is done.

class airflow.providers.google.cloud.triggers.bigquery_dts.BigQueryDataTransferRunTrigger(project_id, config_id, run_id, poll_interval=10, gcp_conn_id='google_cloud_default', delegate_to=None, location=None, impersonation_chain=None)[source]

Bases: airflow.triggers.base.BaseTrigger

Triggers class to watch the Transfer Run state to define when the job is done. :param project_id: The BigQuery project id where the transfer configuration should be :param config_id: ID of the config of the Transfer Run which should be watched. :param run_id: ID of the Transfer Run which should be watched. :param poll_interval: Optional. Interval which defines how often triggers check status of the job. :param gcp_conn_id: The connection ID used to connect to Google Cloud. :param delegate_to: The account to impersonate using domain-wide delegation of authority, if any. For this to work, the service account making the request must have domain-wide delegation enabled. :param location: BigQuery Transfer Service location for regional transfers. :param impersonation_chain: Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

serialize()[source]

Serializes class arguments and classpath.

async run()[source]

Get Transfer Run status and if it one of the statuses which mean end of the job then yield TriggerEvent object.

Was this entry helpful?