-
Notifications
You must be signed in to change notification settings - Fork 16.4k
CreateBatchPredictionJobOperator Add batch_size param for Vertex AI BatchPredictionJob objects
#31118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateBatchPredictionJobOperator Add batch_size param for Vertex AI BatchPredictionJob objects
#31118
Conversation
airflow/providers/google/cloud/operators/vertex_ai/batch_prediction_job.py
Show resolved
Hide resolved
CreateBatchPredictionJobOperator Add batch_size param for Vertex AI BatchPredictionJob objects
airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py
Outdated
Show resolved
Hide resolved
potiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine - with the NIT for description.
…n_job.py Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
hussein-awala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good after the last change
|
@potiuk, @hussein-awala, Is there anything else can be improved before merging? :) |
|
Nope. Merged :). |
Add batch_size param for Vertex AI BatchPredictionJob objects.
Vertex AI python sdk has BatchPredictionJob.create method, introduced with the 1.13.1 version. So the PR updates with passing
batch_sizeparam:CreateBatchPredictionJobOperatorBatchPredictionJobHookWhen the
batch_sizeis introduced in 1.13,create_request_timeouthad already been there, so this param is also added to avoid any confuse.The change itself is pretty simple.