Visitar URL original
feat(server): Remote Materialization by aniketpalu · Pull Request #6649 · feast-dev/feast · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(server): Only reset MATERIALIZING FVs on async materialize failure
Avoid wiping AVAILABLE_ONLINE when a post-success exception fires
(e.g. SparkApp CR already cleaned up). Reuse the stuck-state helper
so true failures still return to GENERATED.

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
  • Loading branch information
aniketpalu committed Aug 5, 2026
commit c602fe300aa2fa60d7e270dee8de46714a8149ff
4 changes: 2 additions & 2 deletions sdk/python/feast/feature_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def _run_materialize():
f"Async materialization failed for {fv_names}: {e}",
exc_info=True,
)
_update_fv_state(store, fv_names, FeatureViewState.GENERATED)
_reset_stuck_materializing_to_generated(store, fv_names)

loop = asyncio.get_running_loop()
loop.run_in_executor(None, _run_materialize)
Expand Down Expand Up @@ -1029,7 +1029,7 @@ def _run_materialize_incremental():
f"Async materialize-incremental failed for {fv_names}: {e}",
exc_info=True,
)
_update_fv_state(store, fv_names, FeatureViewState.GENERATED)
_reset_stuck_materializing_to_generated(store, fv_names)

loop = asyncio.get_running_loop()
loop.run_in_executor(None, _run_materialize_incremental)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

non-blocking but I think it's better if we used dedicated executor, instead of default shared pool, for materialization so that it won't block other operations if multiple executors in progress

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, added separate executor

Expand Down
Loading