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

fix(core): Fix duplicate Redis publisher #10392

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Aug 14, 2024

Noticed while working on #10377 that we are creating two separate Redis publishers when booting up a main. Two are unneeded and wasteful, so this PR prevents the duplicate.

Skipped test for now - our Redis setup is too convoluted, needs revamping. This issue would not have been an issue if this setup had been using the DI container to enforce singletons.

Before After

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

@netroy netroy left a comment

Choose a reason for hiding this comment

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

The whole isInitialized thing always feels like a workaround. in the long run IMO we should have enough control over this code to be 100% certain that init is only called once, and then we should remove isInitialized completely.

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Aug 14, 2024



Test summary

401 0 0 0Flakiness 1


Run details

Project n8n
Status Passed
Commit 4e475ee
Started Aug 14, 2024 8:49 AM
Ended Aug 14, 2024 8:54 AM
Duration 04:48 💡
OS Linux Debian -
Browser Electron 118

View run in Cypress Cloud ➡️


Flakiness

e2e/14-mapping.cy.ts Flakiness
1 Data mapping > maps expressions from table header

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

@ivov ivov merged commit 45813de into master Aug 14, 2024
27 checks passed
@ivov ivov deleted the fix-duplicate-redis-publisher branch August 14, 2024 08:55
@github-actions github-actions bot mentioned this pull request Aug 14, 2024
@janober
Copy link
Member

janober commented Aug 15, 2024

Got released with n8n@1.55.0

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