VladaZakharova commented on code in PR #75969:
URL: https://github.com/apache/airflow/pull/75969#discussion_r4491128886
##########
providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py:
##########
@@ -82,6 +91,17 @@ def cancel_batch_prediction_job(self) -> None:
if self._batch_prediction_job:
self._batch_prediction_job.cancel()
+ def _init_aiplatform(self, *, project_id: str, region: str, credentials:
Credentials) -> None:
+ # BatchPredictionJob.create/submit build
"{location}-aiplatform.googleapis.com" from their
+ # location argument, which is wrong for "global". aiplatform.init
state is process-wide and
+ # sticky, so it is set on every call to avoid reusing the endpoint of
a previous job.
Review Comment:
fixed, thanks!
--
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]