Revert "Complete the original attempt span if retrying due to an OOM"

This reverts commit 5f652c6212.
This commit is contained in:
Matt Aitken
2025-02-11 11:33:07 +00:00
parent 5f652c6212
commit d2ee232fae
@@ -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),
},
},
],
});
}
}