Repository navigation
Avoid Vertex AI Feature Store system Dag import timeout - #69823
Conversation
|
cc @guan404ming, @jason810496. 🙌 |
shahar1
left a comment
There was a problem hiding this comment.
Thanks for your contribution!
Got a small deja vu from a similar issue I encountered in the past: googleapis/python-aiplatform#1994
Few comments to handle and we're good to go :)
ad137d0 to
4c95ab8
Compare
Thx for extra content, PTAL. |
|
Hello @shahar1 Thanks for the earlier review, could you take another look for it? |
VladaZakharova
left a comment
There was a problem hiding this comment.
Overall LGTM,
but please update the PR description saying that now we can use dict as a config (with adding this info in rst file), as well as adding a screenshot of green system test showing that it works.
Apologies for the delay, wasn't available at the time. Could you please resolve conflicts and address Vlada's commentary? |
The Vertex AI client package performs expensive third-party imports during Dag discovery, pushing the system example beyond the default 30-second limit and exposing circular-import failures. Keeping parsing lightweight prevents system Dag scans from failing before tasks can run. Signed-off-by: viiccwen <vicwen@apache.org>
Rebasing onto apache#71238 kept its Bigtable autoscaling config as a typed FeatureOnlineStore message, which brought back the aiplatform_v1beta1 import into the system Dag. Express it as a dictionary so Dag parsing no longer imports the package, and document that the Feature Store operators accept dictionaries.
4c95ab8 to
4b16c53
Compare
|
@shahar1 Thanks for the reviews and for taking over the PR to get it merged. Really appreciate your help! 🙌 |

Prevent the Google Vertex AI Feature Store system Dag from loading
aiplatform_v1beta1while Airflow discovers Dags. The package's third-party import chain can exceed the default 30-second Dag import timeout before any task runs.Defer the Feature Store clients and data-format type until their execution paths need them. Use GAPIC-supported mappings in the system Dag so parsing does not construct protobuf messages, while keeping the existing hook and operator type signatures unchanged.
Update the client mock targets for the deferred imports and cover both client getter paths.
Before/after cold-import comparison in the same Breeze environment:
google.cloud.aiplatform_v1beta1loaded during parsingThe before result exceeds Airflow's default
dagbag_import_timeoutof 30 seconds. The after result keeps the Vertex AI Feature Store package out of the Dag parsing process entirely.Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.