moiseenkov commented on code in PR #36594:
URL: https://github.com/apache/airflow/pull/36594#discussion_r1464505265
##########
airflow/providers/google/cloud/hooks/vertex_ai/hyperparameter_tuning_job.py:
##########
@@ -413,3 +428,106 @@ def delete_hyperparameter_tuning_job(
metadata=metadata,
)
return result
+
+
+class HyperparameterTuningJobAsyncHook(GoogleBaseHook):
+ """Async hook for Google Cloud Vertex AI Hyperparameter Tuning Job APIs."""
+
+ def __init__(
+ self,
+ gcp_conn_id: str = "google_cloud_default",
+ impersonation_chain: str | Sequence[str] | None = None,
+ **kwargs,
+ ):
+ super().__init__(
+ gcp_conn_id=gcp_conn_id,
+ impersonation_chain=impersonation_chain,
+ **kwargs,
+ )
+ self._client: JobServiceAsyncClient | None = None
+
+ def get_job_service_client(self, region: str | None = None) ->
JobServiceAsyncClient:
Review Comment:
Great idea, 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]