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

Retry IDE controller initialization. #5802

Merged
merged 6 commits into from
Mar 7, 2023

Conversation

farmaazon
Copy link
Contributor

Pull Request Description

This mainly fixes #5627 in both scenarios: when the initProtocol method takes too long time and also when we run GUI before LS listens for new connections.

If the IDE initialization fails (e.g. due to above two reasons), it is retried 3 times, waiting some time.

Important Notes

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the
    Scala,
    Java,
    and
    Rust
    style guides.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed: Enso GUI was tested when built using BOTH
      ./run ide build and ./run ide watch.

@farmaazon farmaazon self-assigned this Mar 3, 2023
@sylwiabr sylwiabr requested a review from kazcw March 3, 2023 12:09
error!("{message}");
match retry_after.next() {
Some(time) => {
info!("Retrying after {} seconds", time.as_secs_f32());
Copy link
Contributor

Choose a reason for hiding this comment

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

I would log this at error level--it's important information about the error.

@MichaelMauderer
Copy link
Contributor

QA Approved ✅

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Mar 7, 2023
@mergify mergify bot merged commit 1687dcc into develop Mar 7, 2023
@mergify mergify bot deleted the wip/farmaazon/cloud-timeouts-5627 branch March 7, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDE timeouts when trying to connect with the cloud
3 participants