-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Use task broker's health endpoint #32
feat: Use task broker's health endpoint #32
Conversation
Task broker now has a health endpoint, which we can now use. That way we don't need the n8n's api server's URI anymore, simplifying the config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely idea! Some comments to prevent confusion in future
@@ -23,16 +23,16 @@ func sendReadinessRequest(n8nMainServerURI string) (*http.Response, error) { | |||
return client.Do(req) | |||
} | |||
|
|||
// CheckUntilN8nReady checks forever until the n8n main instance is ready, i.e. | |||
// CheckUntilBrokerReady checks forever until the task broker is ready, i.e. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// CheckUntilBrokerReady checks forever until the task broker is ready, i.e. | |
// CheckUntilBrokerReady checks forever until the task broker server is ready, i.e. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to repeat the server everywhere. Task broker is a server
Co-authored-by: Iván Ovejero <[email protected]>
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Co-authored-by: Iván Ovejero <[email protected]>
Co-authored-by: Iván Ovejero <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Task broker now has a health endpoint, which we can now use. That way we don't need the n8n's api server's URI anymore, simplifying the config.
Related PR: n8n-io/n8n#11920