Skip to content

Commit ef70aa7

Browse files
authored
fix(resume): carry the admitted resume run's ID on outer resume failure logs (#9663)
1 parent f0a3432 commit ef70aa7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/sim/lib/workflows/executor/resume-execution.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export async function executeResumeWorkflow({
243243
actorUserId: preprocessResult.actorUserId,
244244
})
245245

246+
let admittedResumeExecutionId: string | undefined
246247
try {
247248
const enqueueResult = await PauseResumeManager.enqueueOrStartResume({
248249
executionId,
@@ -252,6 +253,7 @@ export async function executeResumeWorkflow({
252253
userId,
253254
allowedPauseKinds: ['human'],
254255
})
256+
admittedResumeExecutionId = enqueueResult.resumeExecutionId
255257

256258
if (enqueueResult.status === 'queued') {
257259
return {
@@ -441,7 +443,11 @@ export async function executeResumeWorkflow({
441443
logFailureOnce(logger, 'Resume request failed', error, {
442444
executionId,
443445
metadata: () =>
444-
projectResolvedSecretDiagnosticError(error, undefined, { workflowId, contextId }),
446+
projectResolvedSecretDiagnosticError(error, undefined, {
447+
workflowId,
448+
contextId,
449+
resumeExecutionId: admittedResumeExecutionId,
450+
}),
445451
})
446452
if (statusCode !== undefined) {
447453
throw new ResumeWorkflowExecutionError(statusCode, toError(error).message, statusCode < 500)

0 commit comments

Comments
 (0)