airflow.providers.google.cloud.sensors.dataproc

This module contains a Dataproc Job sensor.

Module Contents

class airflow.providers.google.cloud.sensors.dataproc.DataprocJobSensor(*, project_id: str, dataproc_job_id: str, region: str = None, location: Optional[str] = None, gcp_conn_id: str = 'google_cloud_default', **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Check for the state of a previously submitted Dataproc job.

Parameters
  • project_id (str) -- The ID of the google cloud project in which to create the cluster. (templated)

  • dataproc_job_id (str) -- The Dataproc job ID to poll. (templated)

  • region (str) -- Required. The Cloud Dataproc region in which to handle the request. (templated)

  • location (str) -- (To be deprecated). The Cloud Dataproc region in which to handle the request. (templated)

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

template_fields = ['project_id', 'region', 'dataproc_job_id'][source]
ui_color = #f0eee4[source]
poke(self, context: dict)[source]

Was this entry helpful?