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): Stop explicit redis client disconnect on shutdown #10551

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Aug 26, 2024

Summary

We are temporarily removing this code, until we can refactor all shutdown sequences to start using @OnShutdown, to prevent any code (being called from stopProcess) from trying to use a terminated redis connection.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/PAY-1843

Review / Merge checklist

  • PR title and summary are descriptive
  • PR Labeled with release/backport

@netroy netroy added the release/backport Changes that need to be backported to older releases. label Aug 26, 2024
@netroy netroy changed the title revert(core): Stop explicit redis client disconnect on shutdown fix(core): Stop explicit redis client disconnect on shutdown Aug 26, 2024
Copy link

cypress bot commented Aug 26, 2024

n8n    Run #6614

Run Properties:  status check failed Failed #6614  •  git commit f71281221e: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project n8n
Branch Review master
Run status status check failed Failed #6614
Run duration 09m 07s
Commit git commit f71281221e: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Committer कारतोफ्फेलस्क्रिप्ट™
View all properties for this run ↗︎

Test results
Tests that failed  Failures 25
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 230
View all changes introduced in this branch ↗︎

Tests for review

Failed  5-ndv.cy.ts • 5 failed tests

View Output Video

Test Artifacts
NDV > should disconect Switch outputs if rules order was changed Screenshots Video
NDV > should show data from the correct output in schema view Screenshots Video
NDV > floating nodes > should traverse floating nodes with mouse Screenshots Video
NDV > floating nodes > should traverse floating nodes with keyboard Screenshots Video
NDV > floating nodes > should connect floating sub-nodes Screenshots Video
Failed  30-langchain.cy.ts • 9 failed tests

View Output Video

Test Artifacts
Langchain Integration > should not open chat modal Test Replay Screenshots Video
Langchain Integration > should disable test workflow button Test Replay Screenshots Video
Langchain Integration > should add nodes to all Agent node input types Test Replay Screenshots Video
Langchain Integration > should add multiple tool nodes to Agent node tool input type Test Replay Screenshots Video
Langchain Integration > should be able to open and execute Basic LLM Chain node Test Replay Screenshots Video
Langchain Integration > should be able to open and execute Agent node Test Replay Screenshots Video
Langchain Integration > should add and use Manual Chat Trigger node together with Agent node Test Replay Screenshots Video
Langchain Integration > should auto-add chat trigger and basic LLM chain when adding LLM node Test Replay Screenshots Video
Langchain Integration > should not auto-add nodes if AI nodes are already present Test Replay Screenshots Video
Failed  12-canvas.cy.ts • 2 failed tests

View Output Video

Test Artifacts
Canvas Node Manipulation and Navigation > should add switch node and test connections Test Replay Screenshots Video
Canvas Node Manipulation and Navigation > should add merge node and test connections Test Replay Screenshots Video
Failed  16-webhook-node.cy.ts • 3 failed tests

View Output Video

Test Artifacts
Webhook Trigger node > should listen for a GET request and respond with Respond to Webhook node Test Replay Screenshots Video
Webhook Trigger node > should listen for a GET request and respond with last node Test Replay Screenshots Video
Webhook Trigger node > should listen for a GET request and respond with last node binary data Test Replay Screenshots Video
Failed  19-execution.cy.ts • 3 failed tests

View Output Video

Test Artifacts
Execution > should test webhook workflow Test Replay Screenshots Video
Execution > should test webhook workflow stop Test Replay Screenshots Video
Execution > should send proper payload for manual node run Test Replay Screenshots Video

The first 5 failed specs are shown, see all 48 specs in Cypress Cloud.

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit f712812 into master Aug 26, 2024
32 of 33 checks passed
@netroy netroy deleted the disable-redis-disconnect branch August 26, 2024 13:15
@github-actions github-actions bot mentioned this pull request Aug 26, 2024
@github-actions github-actions bot mentioned this pull request Aug 26, 2024
@github-actions github-actions bot mentioned this pull request Aug 26, 2024
@janober
Copy link
Member

janober commented Aug 26, 2024

Got released with n8n@1.56.2

MiloradFilipovic added a commit that referenced this pull request Aug 27, 2024
* master:
  refactor(core): Use `@/databases/` instead of `@db/` (no-changelog) (#10573)
  ci: Fix destroy benchmark env workflow (no-changelog) (#10572)
  feat: Add benchmarking of pooled sqlite (no-changelog) (#10550)
  refactor(editor): User journey link to n8n.io (#10331)
  fix(Wait Node): Prevent waiting until invalid date (#10523)
  refactor(core): Standardize filename casing for controllers and databases (no-changelog) (#10564)
  refactor(core): Allow custom types on getCredentials (no-changelog) (#10567)
  fix(editor): Scale output item selector input width with value (#10555)
  refactor(core): Delete InternalHooks (no-changelog) (#10561)
  fix(core): Make boolean config value parsing backward-compatible (#10560)
  fix(Google Sheets Trigger Node): Show sheet name is too long error (#10542)
  fix(editor): Ensure `Datatable` component renders `All` option (#10525)
  fix(core): Stop explicit redis client disconnect on shutdown (#10551)
  ci: Use correct branch for benchmark docker build workflow (no-changelog) (#10552)
  refactor(core): Separate listeners in scaling service (no-changelog) (#10487)
This was referenced Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/backport Changes that need to be backported to older releases. Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants