Revert "Complete the original attempt span if retrying due to an OOM"
This reverts commit 5f652c6212.
This commit is contained in:
@@ -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),
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user