Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mfsiega
Copy link
Contributor

@mfsiega mfsiega commented Dec 17, 2025

Summary

Make sure we apply the N8N_REDIS_KEY_PREFIX whenever we publish or subscribe to Redis PubSub.

If two deployments of n8n share a single Redis, we try to support isolating them by supplying a N8N_REDIS_KEY_PREFIX environment variable.

However, we don't apply this prefix for certain messages -- worker status, webhook activation. This means these messages can end up at the wrong instance, causing errors and confusion. For example, the /settings/workers endpoint returns all of the workers of all instances using the Redis server.

This change ensures that the prefix is applied for all of these usages.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/CAT-1761

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)

@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/cli/src/commands/start.ts 0.00% 2 Missing ⚠️
...kages/cli/src/scaling/pubsub/subscriber.service.ts 92.30% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 9 files

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Dec 17, 2025
@currents-bot
Copy link

currents-bot bot commented Dec 17, 2025

E2E Tests: n8n tests passed after 9m 17s

🟢 584 · 🔴 0 · ⚪️ 27 · 🟣 2

View Run Details

Run Details

  • Project: n8n

  • Groups: 2

  • Framework: Playwright

  • Run Status: Passed

  • Commit: 57e7dfb

  • Spec files: 131

  • Overall tests: 611

  • Duration: 9m 17s

  • Parallelization: 9

Groups

GroupId Results Spec Files Progress
multi-main:ui 🟢 527 · 🔴 0 · ⚪️ 27 · 🟣 2 122 / 122
multi-main:ui:isolated 🟢 57 · 🔴 0 · ⚪️ 0 9 / 9


This message was posted automatically by currents.dev | Integration Settings

@mfsiega mfsiega requested review from ivov and tomi December 18, 2025 09:27
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants