TobKed commented on a change in pull request #11726:
URL: https://github.com/apache/airflow/pull/11726#discussion_r517235407



##########
File path: airflow/providers/google/cloud/hooks/dataflow.py
##########
@@ -920,3 +942,30 @@ def cancel_job(
             drain_pipeline=self.drain_pipeline,
         )
         jobs_controller.cancel()
+
+    @GoogleBaseHook.fallback_to_default_project_id
+    def get_job(
+        self,
+        job_id: str,
+        project_id: str,
+        location: str = DEFAULT_DATAFLOW_LOCATION,
+    ) -> dict:
+        """
+        Gets the job with the specified Job ID.
+
+        :param job_id: Job ID to get.
+        :type job_id: str
+        :param project_id: Optional, 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.
+        :type project_id:
+        :param location: Job location.

Review comment:
       Thanks! Added.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to