Skip to content

Avoid Vertex AI Feature Store system Dag import timeout - #69823

Merged
shahar1 merged 2 commits into
apache:mainfrom
viiccwen:fix-google-feature-store-dag-imports
Oct 17, 2026
Merged

shahar1 merged 2 commits into
apache:mainfrom
viiccwen:fix-google-feature-store-dag-imports

Conversation

@viiccwen

@viiccwen viiccwen commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Prevent the Google Vertex AI Feature Store system Dag from loading aiplatform_v1beta1 while 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:

Before After
System Dag import time 30+ seconds (timeout) 10.278 seconds
google.cloud.aiplatform_v1beta1 loaded during parsing Yes No

The before result exceeds Airflow's default dagbag_import_timeout of 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?
  • Yes - Codex 5.6 Sol

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {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.

@viiccwen
viiccwen requested a review from shahar1 as a code owner July 13, 2026 11:21
@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Jul 13, 2026
@viiccwen

Copy link
Copy Markdown
Contributor Author

cc @guan404ming, @jason810496. 🙌

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

@viiccwen
viiccwen force-pushed the fix-google-feature-store-dag-imports branch from ad137d0 to 4c95ab8 Compare July 14, 2026 03:51
@viiccwen

Copy link
Copy Markdown
Contributor Author

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 :)

Thx for extra content, PTAL.

@viiccwen

viiccwen commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Hello @shahar1 Thanks for the earlier review, could you take another look for it?

@VladaZakharova VladaZakharova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@shahar1

shahar1 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Hello @shahar1 Thanks for the earlier review, could you take another look for it?

Apologies for the delay, wasn't available at the time. Could you please resolve conflicts and address Vlada's commentary?

viiccwen and others added 2 commits October 17, 2026 22:06
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.
@shahar1
shahar1 force-pushed the fix-google-feature-store-dag-imports branch from 4c95ab8 to 4b16c53 Compare October 17, 2026 19:14
@shahar1

shahar1 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

I took over the PR to get it merged, as remaining deltas were small.

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.

image

First 3 runs are initial attempts failed because of bad setup, the latest one is the real run.

@shahar1
shahar1 merged commit d5aed74 into apache:main Oct 17, 2026
87 checks passed
@viiccwen

Copy link
Copy Markdown
Contributor Author

@shahar1 Thanks for the reviews and for taking over the PR to get it merged. Really appreciate your help! 🙌

@viiccwen
viiccwen deleted the fix-google-feature-store-dag-imports branch October 18, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Google Vertex AI Feature Store system Dag exceeds import timeout

3 participants