This module contains a Google Cloud Dataform sensor.

Module Contents



Checks for the status of a Workflow Invocation in Google Cloud Dataform.

class*, project_id, region, repository_id, workflow_invocation_id, expected_statuses, failure_statuses=None, gcp_conn_id='google_cloud_default', impersonation_chain=None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Checks for the status of a Workflow Invocation in Google Cloud Dataform.

  • project_id (str) – Required, the Google Cloud project ID in which to start a job. If set to None or missing, the default project_id from the Google Cloud connection is used.

  • region (str) – Required, The location of the Dataform workflow invocation (for example europe-west1).

  • repository_id (str) – Required. The ID of the Dataform repository that the task belongs to.

  • workflow_invocation_id (str) – Required, ID of the workflow invocation to be checked.

  • expected_statuses (set[int] | int) – The expected state of the operation. See:

  • failure_statuses (Iterable[int] | None) – State that will terminate the sensor with an exception

  • gcp_conn_id (str) – The connection ID to use connecting to Google Cloud.

  • impersonation_chain (str | Sequence[str] | None) – 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).

template_fields: Sequence[str] = ('workflow_invocation_id',)[source]

Override when deriving this class.

Was this entry helpful?