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

[REF-2956]Fail When Backend port or frontend port is explicitly provided and the port is in use #3432

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

ElijahAhianyo
Copy link
Collaborator

@ElijahAhianyo ElijahAhianyo commented Jun 4, 2024

When the backend port or frontend port is provided (in the config or as a CLI argument), we should avoid auto-selecting the next available port. Instead, we should throw an error and exit the application completely.

fixes #3385

@ElijahAhianyo ElijahAhianyo changed the title Fail When Backend port or frontend port is explicitly provided. [2956]Fail When Backend port or frontend port is explicitly provided. Jun 5, 2024
@ElijahAhianyo ElijahAhianyo changed the title [2956]Fail When Backend port or frontend port is explicitly provided. [2956]Fail When Backend port or frontend port is explicitly provided and the port is in use Jun 5, 2024
@ElijahAhianyo ElijahAhianyo marked this pull request as ready for review June 5, 2024 12:36
@ElijahAhianyo ElijahAhianyo changed the title [2956]Fail When Backend port or frontend port is explicitly provided and the port is in use [REF-2956]Fail When Backend port or frontend port is explicitly provided and the port is in use Jun 5, 2024
Copy link

linear bot commented Jun 5, 2024

Exit:when the port is in use.
"""
if is_process_on_port(port):
if int(port) == int(default_port):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to handle the case where they specifically, but it seems hard to do with how we're handling the default values now. We can come back to this if needed.

@picklelo picklelo merged commit 44ad9a7 into main Jun 5, 2024
47 checks passed
@masenf masenf deleted the elijah/auto-ports-select branch December 12, 2024 07:11
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.

[REF-2956] New Auto Port Select Feature is Overriding Config
2 participants