-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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): Ensure worker stops picking up new jobs while shutting down #13714
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
|
n8n
|
Project |
n8n
|
Branch Review |
cat-693-worker-shutdown-works-incorrectly
|
Run status |
|
Run duration | 04m 32s |
Commit |
|
Committer | Iván Ovejero |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
1
|
|
0
|
|
5
|
|
0
|
|
364
|
View all changes introduced in this branch ↗︎ |
Tests for review
39-projects.cy.ts • 1 failed test
Test | Artifacts | |
---|---|---|
Projects > when starting from scratch > should move resources between projects |
Test Replay
Screenshots
Video
|
The first 5 failed specs are shown, see all 30 specs in Cypress Cloud.
|
1 similar comment
|
This PR needs latest master to be merged, to fix the e2e tests. |
Summary
On
master
we currently pause the queue on shutdown only for main, i.e. the worker continues to pick up jobs during shutdown which are likely to be interrupted by the 30s shutdown timeout. This PR ensures the worker stops dequeuing jobs during shutdown.Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/CAT-693/worker-shutdown-works-incorrectly
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)