Skip to content

Commit 3e15700

Browse files
committed
fix(tables): keep server-side logging for a resumed pause that cannot be saved
1 parent ccce75f commit 3e15700

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/sim/lib/workflows/executor/human-in-the-loop-manager.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,12 @@ export class PauseResumeManager {
932932
*/
933933
const effectiveExecutionId = result.metadata?.executionId ?? resumeExecutionId
934934
const failPause = async (reason: string, cause?: unknown): Promise<never> => {
935+
logger.error(
936+
reason,
937+
cause === undefined
938+
? { resumeExecutionId }
939+
: projectResolvedSecretDiagnosticError(cause, undefined, { resumeExecutionId })
940+
)
935941
await LoggingSession.markExecutionAsFailed(
936942
effectiveExecutionId,
937943
cause === undefined ? reason : `${reason}: ${toError(cause).message}`,

0 commit comments

Comments
 (0)