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

improvement: show bsp as connected after the first message from build server #5707

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

kasiaMarek
Copy link
Contributor

Previously:
after a no response error, if the build server started responding, we'd have to wait a minute for the status to get fix.

Now: the moment when we get a message from build server we fix the status.


def shutdown(): Unit = {
scribe.debug("shutting down server liveness monitor")
scheduled.cancel(true)
scheduler.shutdown()
client.metalsStatus(ServerLivenessMonitor.disconnectedParams)
bspStatus.connected()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
bspStatus.connected()
bspStatus.disconnected()

? Since this is on shutdown? Seems disconnected is not used otherwise?

Copy link
Member

@jkciesluk jkciesluk left a comment

Choose a reason for hiding this comment

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

lgtm

@kasiaMarek kasiaMarek requested a review from tgodzik October 5, 2023 12:19
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM!

@kasiaMarek kasiaMarek merged commit 028b231 into scalameta:main Oct 6, 2023
22 of 24 checks 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.

3 participants