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

Feature: Docker Host Retry #19127

Merged
merged 15 commits into from
Jan 14, 2025

Conversation

keshavmohta09
Copy link
Contributor

Describe your changes:

I implemented a retry mechanism for the service connection, replacing localhost with host.docker.internal if a connection error occurs.

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Copy link
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@keshavmohta09 keshavmohta09 requested a review from a team as a code owner December 19, 2024 06:16
Comment on lines +78 to +83
if "localhost" in host_port_str:
result = test_connection_fn(metadata, connection, request.connection.config)
raise_test_connection_exception(result)

test_connection_fn(
metadata, connection, request.connection.config, automation_workflow
Copy link
Member

Choose a reason for hiding this comment

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

does this mean we run the test connection twice in case of localhost and when no exception is thrown?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we need to do this to show the result of test_connection on the frontend

Copy link

@ayush-shah ayush-shah merged commit 7bea4f9 into open-metadata:main Jan 14, 2025
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants