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): Scheduler tasks should not trigger on follower instances #10507

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Aug 22, 2024

Summary

When n8n is running in multi-main mode, it's possible for a short while for multiple main instances to have active timers for scheduled tasks (until the leadership handover finishes). During this time if a scheduled task is invoked on a non-leader instance, it should simply be ignored.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1607

Review / Merge checklist

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

@netroy netroy added the release/backport Changes that need to be backported to older releases. label Aug 22, 2024
@netroy netroy changed the title fix(core): Scheduled tasks should not invoke on follower instances fix(core): Scheduler tasks should not trigger on follower instances Aug 22, 2024
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request labels Aug 22, 2024
Copy link

cypress bot commented Aug 22, 2024



Test summary

414 0 0 0Flakiness 0


Run details

Project n8n
Status Passed
Commit 0412e9c
Started Aug 22, 2024 9:26 AM
Ended Aug 22, 2024 9:31 AM
Duration 04:46 💡
OS Linux Debian -
Browser Electron 118

View run in Cypress Cloud ➡️


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

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit 3428f28 into master Aug 22, 2024
27 checks passed
@netroy netroy deleted the NODE-1607-scheduled-tasks-in-multi-main branch August 22, 2024 09:46
@github-actions github-actions bot mentioned this pull request Aug 23, 2024
@janober
Copy link
Member

janober commented Aug 23, 2024

Got released with n8n@1.56.1

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 node/improvement New feature or request 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