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

feat(core): Add health endpoint for task broker server (no-changelog) #11920

Merged

Conversation

tomi
Copy link
Contributor

@tomi tomi commented Nov 27, 2024

Summary

Add healthcheck endpoint for the task broker server.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/CAT-368/add-healthcheck-endpoint-for-task-broker-and-use-that

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Nov 27, 2024
Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

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

Let's test this? Mostly to prevent it being accidentally removed in future.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@tomi
Copy link
Contributor Author

tomi commented Nov 27, 2024

Let's test this? Mostly to prevent it being accidentally removed in future.

Very good point. Added tests

@tomi tomi requested a review from ivov November 27, 2024 12:17
Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

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

Thanks for testing! LGTM

Comment on lines +35 to +39
return {
server: taskRunnerServer,
agent,
config: runnerConfig,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Really like this pattern 👍🏻

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Nov 27, 2024

n8n    Run #8127

Run Properties:  status check passed Passed #8127  •  git commit 327c5b4b29: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 tomi 🗃️ e2e/*
Project n8n
Branch Review cat-368-add-healthcheck-endpoint-for-task-broker-and-use-that
Run status status check passed Passed #8127
Run duration 04m 32s
Commit git commit 327c5b4b29: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 tomi 🗃️ e2e/*
Committer Tomi Turtiainen
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 478
View all changes introduced in this branch ↗︎

@tomi tomi merged commit 9669380 into master Nov 27, 2024
35 checks passed
@tomi tomi deleted the cat-368-add-healthcheck-endpoint-for-task-broker-and-use-that branch November 27, 2024 12:50
@janober
Copy link
Member

janober commented Nov 27, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants