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

Fix/dc 3170 redis connect error #147

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jennyc06
Copy link

@jennyc06 jennyc06 commented Dec 31, 2024

  • Add config to immediately throw & stop app when failed to connect to dependencies / prepare app
  • Add log when redis reconnecting / reconnected for debugging
  • Add maxRetryDelayMs config for redis

return this
} catch (err) {
console.error('error when starting app', err);
if (this.config && this.config.app && this.config.app.throwAndStopWhenError) {
Copy link

@travis-shoplineapp travis-shoplineapp Jan 2, 2025

Choose a reason for hiding this comment

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

this should be a fix rather than needing backward compatibility, a service should not start if the dependency fail
also when a client chooses to upgrade sl-express, they should be aware our change
consider reducing code complexity

Copy link
Author

Choose a reason for hiding this comment

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

updated

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.

3 participants