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

remove dns sleep #2550

Merged
merged 2 commits into from
Jul 1, 2024
Merged

remove dns sleep #2550

merged 2 commits into from
Jul 1, 2024

Conversation

Adam-D-Lewis
Copy link
Member

Reference Issues or PRs

There is no need for a sleep on trying DNS lookup unless you've disabled the prompt since it waits til you press Enter anyways. This removes the sleep the case you haven't disabled prompts.

What does this implement/fix?

Put a x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features not to work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

  • Did you test the pull request locally?
  • Did you add new tests?

Any other comments?

input(
f"After attempting to poll the DNS, the record for domain={domain_name} appears not to exist, "
f"has recently been updated, or has yet to fully propagate. This non-deterministic behavior is likely due to "
f"DNS caching and will likely resolve itself in a few minutes.\n\n\tTo poll the DNS again in {sleeptime} seconds "
f"[Press Enter].\n\n...otherwise kill the process and run the deployment again later..."
f"DNS caching and will likely resolve itself in a few minutes.\n\n\tTo poll the DNS again [Press Enter].\n\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

@Adam-D-Lewis Can we add extra information to let the user know this will only run up to five times? Something like [4/5]

Copy link
Contributor

@viniciusdc viniciusdc left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks @Adam-D-Lewis -- I left an optional suggestion above

@Adam-D-Lewis Adam-D-Lewis changed the base branch from develop to keycloak-23 July 1, 2024 18:30
@Adam-D-Lewis Adam-D-Lewis changed the base branch from keycloak-23 to develop July 1, 2024 18:30
@Adam-D-Lewis Adam-D-Lewis merged commit 3beafc0 into develop Jul 1, 2024
1 check failed
@Adam-D-Lewis Adam-D-Lewis deleted the no_dns_sleep branch July 1, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants