-
Notifications
You must be signed in to change notification settings - Fork 425
fix(pubsub
): retry connecting to backend
#2254
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense,
this is better than terminating the task
smol nit
break Err(e) | ||
} | ||
} | ||
|
||
_ = &mut self.handle.error => { | ||
error!("Pubsub service backend error."); | ||
if let Err(e) = self.reconnect().await { | ||
error!("Reconnect failed, shutting down: {e}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still want this error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error!( | ||
"Reconnect failed after {} attempts, shutting down: {e}", | ||
retry_count | ||
); | ||
break Err(e); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It prints here @mattsse
Motivation
Closes #2252
Solution
PubsubService
PR Checklist