apply method

Implementation

LevitTaskExecutionSummary apply(LevitTaskEvent event) {
  return LevitTaskExecutionSummary(
    taskId: taskId,
    executionId: executionId,
    ownerPath: event.ownerPath,
    phase: event.phase,
    metadata: event.metadata,
    priority: event.priority,
    attempt: event.attempt,
    queuedAt: event.queuedAt,
    startedAt: event.startedAt ?? startedAt,
    finishedAt: event.finishedAt ?? finishedAt,
    queueDuration: event.queueDuration ?? queueDuration,
    runDuration: event.runDuration ?? runDuration,
    progress: event.progress ?? progress,
    outcome: event.outcome ?? outcome,
    error: event.error,
    stackTrace: event.stackTrace,
  );
}