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

Add health check monitoring for EXL2 errors #206

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

SecretiveShell
Copy link
Contributor

Is your pull request related to a problem? Please describe.
Recently when hibernating my PC I experienced the model unloading and tabbyAPI getting itself stuck reloading the EXL2 container every request.

Why should this feature be added?
This issue adds an internal logging system for fatal errors and code to auto generate a response for the health check endpoint so that it is possible to automatically restart the program if this happens again and fix the error

Examples
The health check endpoint returns 200 OK and status healthy on my machine even when every request is responded to with an error. This would fix that.

Additional context
In the future it will be possible to expand this system easily if more possible fatal errors are discovered by adding a statement to register them in the health manager singleton.

SecretiveShell and others added 2 commits September 22, 2024 13:41
A status code of 503 makes more sense to use.

Signed-off-by: kingbri <bdashore3@proton.me>
@bdashore3 bdashore3 merged commit 2cda890 into theroyallab:main Sep 23, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants