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

Detect hanging handlers to enable mitigating actions from this state #6869

Open
ramonsmits opened this issue Sep 27, 2023 · 0 comments
Open

Comments

@ramonsmits
Copy link
Member

ramonsmits commented Sep 27, 2023

Describe the feature.

Message processing could slow down or even halt when handlers never complete (hang). For example, handlers that deadlock or infinitely wait on a state change that will never happen and the code is not applying any timeout logic or (cooperative) cancellation.

Ideally, the framework should detect such hanging or extremely long-running handlers. After detecting such handlers the endpoint should at minimum log about this. Likely the endpoint will be considered to be in an unhealthy state. It could raise a critical error so that its host can decide to terminate and restart to resolve such persistent issues.

Related

The following community project provides partial solutions to this problem

Additional Context

No response

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

No branches or pull requests

1 participant