Skip to content
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

Improve Exception handling in Projections #3854

Closed
skurfuerst opened this issue Aug 8, 2022 · 3 comments
Closed

Improve Exception handling in Projections #3854

skurfuerst opened this issue Aug 8, 2022 · 3 comments
Assignees
Labels

Comments

@skurfuerst
Copy link
Member

No description provided.

@skurfuerst skurfuerst moved this from Todo to Prioritized in Neos 9.0 Release Board Aug 8, 2022
@skurfuerst skurfuerst self-assigned this Aug 8, 2022
@bwaidelich
Copy link
Member

Maybe a simple work-around would be to create a CLI command that can show the health of a projection just by looking at the state version and comparing that to the latest event version (or by triggering a catchup: no new events = all fine, new events applied w/o exception = all fine, exceptions => handle).
That script could maybe update the checkpoint version somehow and (re-)trigger a catchup so that events can be skipped without us having to implement logic for that in every projection

@bwaidelich
Copy link
Member

First part of that tool (checking state, allow catchup to be triggered) could also be put in an admin Backend module!

@skurfuerst skurfuerst assigned bwaidelich and unassigned skurfuerst Aug 11, 2022
@skurfuerst skurfuerst moved this from Prioritized to Todo in Neos 9.0 Release Board Mar 31, 2023
@bwaidelich bwaidelich changed the title 9.0: Handle Exceptions in Projections Improve Exception handling in Projections Nov 27, 2023
@bwaidelich bwaidelich moved this from Todo to Prioritized 🔥 in Neos 9.0 Release Board Nov 27, 2023
@ahaeslich ahaeslich moved this from Prioritized 🔥 to Low Priority ↘ in Neos 9.0 Release Board Apr 10, 2024
@ahaeslich ahaeslich moved this from Low Priority ↘ to Todo in Neos 9.0 Release Board Apr 10, 2024
@ahaeslich ahaeslich added 9.1 and removed 9.0 labels Apr 10, 2024
@bwaidelich
Copy link
Member

This will (partially) be resolved with #4746 since with that change events are always applied in the same request. An exception during projection will still lead to an invalid state, but it will be visible immediately and stop the process – allowing to fix and replay the affected projection.
Closing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants