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

agent,service: improve exception handling #844

Closed
wants to merge 7 commits into from

Conversation

saihaj
Copy link
Member

@saihaj saihaj commented Jan 11, 2024

Introducing uncaughtException and unhandledRejection handlers and gracefully shutdown the process.

fordN and others added 7 commits January 10, 2024 10:36
- To be upgraded again once Dockerfile and workflows are upgraded
Introducing `uncaughtException` and `unhandledRejection` handlers and gracefully shutdown the process.
@fordN
Copy link
Contributor

fordN commented Jan 24, 2024

We already have similar code paths in the /commands/start.ts files of both indexer-service and indexer-agent. I see that this is one level up in the index.ts files, but I wonder if there is opportunity to unify the approaches?

Copy link
Contributor

@fordN fordN left a comment

Choose a reason for hiding this comment

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

We already have similar code paths in the /commands/start.ts files of both indexer-service and indexer-agent. I see that this is one level up in the index.ts files, but I wonder if there is opportunity to unify the approaches?

@saihaj
Copy link
Member Author

saihaj commented Jan 24, 2024

yeah you are right we don't then technically need cause that is already picking up from the process

@saihaj saihaj closed this Jan 24, 2024
@saihaj saihaj deleted the saihaj/improve-unhandled branch January 24, 2024 18:42
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