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 browser opens in rill start when the port is taken #6328

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented Dec 23, 2024

If another Rill is running, we fail with a "port blocked" error. However, there is a race condition where the health check that is used to check if we should open the browser may succeed before that error bubbles up. The health check succeeds too early because it actually ends up polling the already-running Rill. This PR fixes this by adding a small wait before the first health check.

Closes https://github.com/rilldata/rill-private-issues/issues/925

@begelundmuller begelundmuller self-assigned this Dec 23, 2024
@pjain1 pjain1 merged commit 78e27b8 into main Dec 23, 2024
9 checks passed
@pjain1 pjain1 deleted the begelundmuller/fix-open-browser-port-taken branch December 23, 2024 19:16
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