Skip to content

fix(core): Always serve /healthz on task broker regardless of N8N_ENDPOINT_HEALTH#1935

Closed
everettbu wants to merge 1 commit into
masterfrom
fix/task-broker-always-serve-healthz
Closed

fix(core): Always serve /healthz on task broker regardless of N8N_ENDPOINT_HEALTH#1935
everettbu wants to merge 1 commit into
masterfrom
fix/task-broker-always-serve-healthz

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of n8n-io/n8n#25959
Original author: horiyee


Summary

This is a regression introduced by #25729, which made the health endpoint configurable across all servers including the task broker. The task-runner-launcher binary, however, hardcodes /healthz for the broker readiness check. When users set N8N_ENDPOINT_HEALTH=health — required on platforms such as Google Cloud Run that reserve /healthz at the ingress — the broker began serving health at /health while the launcher kept checking /healthz, receiving 404 and waiting forever. Code nodes would time out after 60 seconds.

The task broker runs on an internal port (5679) that is never publicly exposed, so N8N_ENDPOINT_HEALTH should not affect it. This fix hardcodes /healthz on the task broker, decoupling it from the external health endpoint configuration.

Root cause:

Closes #25958

Testing

Added a unit test to task-broker-server.test.ts that verifies /healthz returns 200 even when N8N_ENDPOINT_HEALTH is overridden (e.g. endpoints: { health: '/health' } in GlobalConfig).

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@everettbu everettbu added core Enhancement outside /nodes-base and /editor-ui in linear Issue or PR has been created in Linear for internal review community Authored by a community member labels Feb 18, 2026
@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 23, 2026
@everettbu
everettbu deleted the fix/task-broker-always-serve-healthz branch February 23, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Authored by a community member core Enhancement outside /nodes-base and /editor-ui in linear Issue or PR has been created in Linear for internal review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants