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

@@ -47,7 +47,7 @@ export class JobProcessor {
this.logger.info(`[JobProcessor] Starting job ${job.id} (execution ${executionId})`);
await this.executionRepository.updateStatus(executionId, 'running');
const startedAt = await this.executionRepository.setRunning(executionId);
let { staticData } = execution.workflowData;
@@ -137,7 +137,7 @@ export class JobProcessor {
workflowId: execution.workflowId,
workflowName: execution.workflowData.name,
mode: execution.mode,
startedAt: execution.startedAt,
startedAt,
retryOf: execution.retryOf ?? '',
status: execution.status,
};