refactor(core): Separate execution startedAt from createdAt (#10810)

This commit is contained in:
Iván Ovejero
2024-09-27 13:32:12 +02:00
committed by GitHub
parent bf7392a878
commit afda049491
26 changed files with 163 additions and 38 deletions

View File

@@ -32,7 +32,7 @@ import { QueuedExecutionRetryError } from '@/errors/queued-execution-retry.error
import { InternalServerError } from '@/errors/response-errors/internal-server.error';
import { NotFoundError } from '@/errors/response-errors/not-found.error';
import type {
ExecutionPayload,
CreateExecutionPayload,
IExecutionFlattedResponse,
IExecutionResponse,
IWorkflowDb,
@@ -321,11 +321,10 @@ export class ExecutionService {
},
};
const fullExecutionData: ExecutionPayload = {
const fullExecutionData: CreateExecutionPayload = {
data: executionData,
mode,
finished: false,
startedAt: new Date(),
workflowData,
workflowId: workflow.id,
stoppedAt: new Date(),