chirodip98 commented on code in PR #61290:
URL: https://github.com/apache/airflow/pull/61290#discussion_r2751802207
##########
providers/google/src/airflow/providers/google/cloud/operators/datafusion.py:
##########
@@ -901,13 +901,15 @@ class
CloudDataFusionStopPipelineOperator(GoogleCloudBaseOperator):
:ref:`howto/operator:CloudDataFusionStopPipelineOperator`
:param pipeline_name: Your pipeline name.
+ :param pipeline_type: Nature of Pipeline, by default BATCH (workflows).
:param instance_name: The name of the instance.
:param location: The Cloud Data Fusion location in which to handle the
request.
:param namespace: If your pipeline belongs to a Basic edition instance,
the namespace ID
is always default. If your pipeline belongs to an Enterprise edition
instance, you
can create a namespace.
:param api_version: The version of the api that will be requested for
example 'v3'.
:param gcp_conn_id: The connection ID to use when fetching connection info.
+ :param run_id: To stop a particular run tagged with provided run_id.
Review Comment:
Done
##########
providers/google/tests/system/google/cloud/datafusion/example_datafusion.py:
##########
@@ -271,6 +271,18 @@ def get_artifacts_versions(ti=None):
)
# [END howto_cloud_data_fusion_start_pipeline_def]
+ # [START howto_cloud_data_fusion_start_pipeline_def_sensor]
+ start_pipeline_def_sensor = CloudDataFusionPipelineStateSensor(
+ task_id="pipeline_state_sensor_def",
+ pipeline_name=PIPELINE_NAME,
+ pipeline_id=start_pipeline_def.output,
+ expected_statuses=["COMPLETED"],
+ failure_statuses=["FAILED"],
+ instance_name=INSTANCE_NAME,
+ location=LOCATION,
+ )
+ # [END howto_cloud_data_fusion_start_pipeline_def_sensor]
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]