-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Conversation
6209a72
to
af37252
Compare
Codecov ReportAttention: Patch coverage is
📢 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
✅ All Cypress E2E specs passed |
n8n Run #7812
Run Properties:
|
Project |
n8n
|
Branch Review |
CAT-328-make-push-work-for-waiting-webhooks
|
Run status |
Passed #7812
|
Run duration | 04m 20s |
Commit |
af372524be: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
|
Committer | कारतोफ्फेलस्क्रिप्ट™ |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
1
|
Pending |
2
|
Skipped |
0
|
Passing |
466
|
View all changes introduced in this branch ↗︎ |
Got released with |
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 tonone
.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
release/backport
(if the PR is an urgent fix that needs to be backported)