mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(core): Waiting workflows not stopping (#5811)
fix: Waiting workflows not stopping
This commit is contained in:
parent
739b9b07f0
commit
744c3fd211
|
@ -165,7 +165,7 @@ export interface IExecutionBase {
|
|||
// Data in regular format with references
|
||||
export interface IExecutionDb extends IExecutionBase {
|
||||
data: IRunExecutionData;
|
||||
waitTill?: Date;
|
||||
waitTill?: Date | null;
|
||||
workflowData?: IWorkflowBase;
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ export interface IExecutionResponse extends IExecutionBase {
|
|||
data: IRunExecutionData;
|
||||
retryOf?: string;
|
||||
retrySuccessId?: string;
|
||||
waitTill?: Date;
|
||||
waitTill?: Date | null;
|
||||
workflowData: IWorkflowBase;
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ export class WaitTracker {
|
|||
};
|
||||
|
||||
fullExecutionData.stoppedAt = new Date();
|
||||
fullExecutionData.waitTill = undefined;
|
||||
fullExecutionData.waitTill = null;
|
||||
fullExecutionData.status = 'canceled';
|
||||
|
||||
await Db.collections.Execution.update(
|
||||
|
|
|
@ -49,7 +49,7 @@ export class ExecutionEntity implements IExecutionFlattedDb {
|
|||
workflowId: string;
|
||||
|
||||
@Column({ type: datetimeColumnType, nullable: true })
|
||||
waitTill: Date;
|
||||
waitTill: Date | null;
|
||||
|
||||
@OneToMany('ExecutionMetadata', 'execution')
|
||||
metadata: ExecutionMetadata[];
|
||||
|
|
|
@ -1547,7 +1547,7 @@ export interface IRun {
|
|||
data: IRunExecutionData;
|
||||
finished?: boolean;
|
||||
mode: WorkflowExecuteMode;
|
||||
waitTill?: Date;
|
||||
waitTill?: Date | null;
|
||||
startedAt: Date;
|
||||
stoppedAt?: Date;
|
||||
status: ExecutionStatus;
|
||||
|
|
Loading…
Reference in a new issue