Complete the original attempt span if retrying due to an OOM
This commit is contained in:
@@ -285,6 +285,23 @@ 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