sunank200 commented on code in PR #38912:
URL: https://github.com/apache/airflow/pull/38912#discussion_r1565245537


##########
airflow/providers/google/cloud/hooks/bigquery.py:
##########
@@ -3389,6 +3389,31 @@ async def create_job_for_partition_get(
             job_query_resp = await job_client.query(query_request, 
cast(Session, session))
             return job_query_resp["jobReference"]["jobId"]
 
+    async def cancel_job(self, job_id: str, project_id: str | None, location: 
str | None) -> None:
+        """
+        Asynchronously cancel a BigQuery job.
+
+        :param job_id: ID of the job to cancel.
+        :param project_id: Google Cloud Project where the job was running.
+        :param location: Location where the job was running.
+        """
+        async with ClientSession() as session:
+            token = await self.get_token(session=session)
+            job = Job(job_id=job_id, project=project_id, location=location, 
token=token, session=session)  # type: ignore

Review Comment:
   I have added specific type ignore



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

Reply via email to