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): Make push work for waiting webhooks #11678

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Nov 11, 2024

Summary

When an execution goes into the waiting state, the execution context is destroyed, since it could be a while before the execution gets resumed. This and the fact that pushRef has so far been kept on the execution context, and not persisted anywhere, has led to push not working in the UI once the execution goes into the waiting state.
This has led to us adding a polling mechanism , which is now creating race condition when EXECUTIONS_DATA_SAVE_ON_SUCCESS is set to none.
Instead of trying to fix the race condition, we should remove the polling instead, and ensure that push works for all manual executions.

Related Linear tickets, Github issues, and Community forum posts

CAT-328

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)

@netroy netroy force-pushed the CAT-328-make-push-work-for-waiting-webhooks branch from 6209a72 to af37252 Compare November 11, 2024 13:45
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Nov 11, 2024
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ckages/cli/src/workflow-execute-additional-data.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@@ -495,6 +495,11 @@ function hookFunctionsSave(): IWorkflowExecuteHooks {
retryOf: this.retryOf,
});

// When going into the waiting state, store the pushRef in the execution-data
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit - Ideally we should comment on the why rather than the what.

Copy link
Member Author

Choose a reason for hiding this comment

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

This code will be deleted in CAT-251

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Nov 11, 2024

n8n    Run #7812

Run Properties:  status check passed Passed #7812  •  git commit af372524be: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project n8n
Branch Review CAT-328-make-push-work-for-waiting-webhooks
Run status status check passed Passed #7812
Run duration 04m 20s
Commit git commit af372524be: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Committer कारतोफ्फेलस्क्रिप्ट™
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 466
View all changes introduced in this branch ↗︎

@netroy netroy merged commit 600479b into master Nov 11, 2024
43 checks passed
@netroy netroy deleted the CAT-328-make-push-work-for-waiting-webhooks branch November 11, 2024 16:15
@github-actions github-actions bot mentioned this pull request Nov 13, 2024
@janober
Copy link
Member

janober commented Nov 13, 2024

Got released with [email protected]

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