fix(core): Make push work for waiting webhooks (#11678)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-11-11 17:15:27 +01:00 committed by GitHub
parent cbdd535fe0
commit 600479bf36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -215,7 +215,7 @@ export class WaitingWebhooks implements IWebhookManager {
workflowData as IWorkflowDb, workflowData as IWorkflowDb,
workflowStartNode, workflowStartNode,
executionMode, executionMode,
undefined, runExecutionData.pushRef,
runExecutionData, runExecutionData,
execution.id, execution.id,
req, req,

View file

@ -495,6 +495,11 @@ function hookFunctionsSave(): IWorkflowExecuteHooks {
retryOf: this.retryOf, retryOf: this.retryOf,
}); });
// When going into the waiting state, store the pushRef in the execution-data
if (fullRunData.waitTill && isManualMode) {
fullExecutionData.data.pushRef = this.pushRef;
}
await updateExistingExecution({ await updateExistingExecution({
executionId: this.executionId, executionId: this.executionId,
workflowId: this.workflowData.id, workflowId: this.workflowData.id,

View file

@ -2114,6 +2114,7 @@ export interface IRunExecutionData {
waitingExecutionSource: IWaitingForExecutionSource | null; waitingExecutionSource: IWaitingForExecutionSource | null;
}; };
waitTill?: Date; waitTill?: Date;
pushRef?: string;
} }
export interface IRunData { export interface IRunData {