Skip to content

Commit

Permalink
Complete the original attempt span if retrying due to an OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-aitken committed Feb 11, 2025
1 parent 036a506 commit 5f652c6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/webapp/app/v3/services/completeAttempt.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
},
],
});
}
}

Expand Down

0 comments on commit 5f652c6

Please sign in to comment.