From d2ee232fae8180520034acc1604e53132efedd19 Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Tue, 11 Feb 2025 11:33:07 +0000 Subject: [PATCH] Revert "Complete the original attempt span if retrying due to an OOM" This reverts commit 5f652c6212728c170f12d95484587b425dd89df9. --- .../app/v3/services/completeAttempt.server.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/apps/webapp/app/v3/services/completeAttempt.server.ts b/apps/webapp/app/v3/services/completeAttempt.server.ts index 8bab150c23..fe18c5c29c 100644 --- a/apps/webapp/app/v3/services/completeAttempt.server.ts +++ b/apps/webapp/app/v3/services/completeAttempt.server.ts @@ -285,23 +285,6 @@ export class CompleteAttemptService extends BaseService { machinePreset: retryConfig.outOfMemory.machine, }, }); - - //complete the attempt span - await eventRepository.completeEvent(taskRunAttempt.taskRun.spanId, { - endTime: failedAt, - attributes: { - isError: true, - }, - events: [ - { - name: "exception", - time: failedAt, - properties: { - exception: createExceptionPropertiesFromError(sanitizedError), - }, - }, - ], - }); } }