From e03dbd75c6cf31d9ccd7f45bf1742453cafe4c06 Mon Sep 17 00:00:00 2001 From: Daniel Bak Date: Wed, 22 Jul 2026 17:50:12 -0400 Subject: [PATCH] Include WorkflowType in wrapFailure error message The "Failure processing workflow task" RuntimeException only included WorkflowId, RunId, and Attempt, forcing anyone debugging a failure to look up the workflow type separately. PollWorkflowTaskQueueResponse already carries the workflow type, so include it directly. --- .../main/java/io/temporal/internal/worker/WorkflowWorker.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/temporal-sdk/src/main/java/io/temporal/internal/worker/WorkflowWorker.java b/temporal-sdk/src/main/java/io/temporal/internal/worker/WorkflowWorker.java index b86dfea6d..17a028e51 100644 --- a/temporal-sdk/src/main/java/io/temporal/internal/worker/WorkflowWorker.java +++ b/temporal-sdk/src/main/java/io/temporal/internal/worker/WorkflowWorker.java @@ -607,6 +607,8 @@ public Throwable wrapFailure(WorkflowTask task, Throwable failure) { + execution.getWorkflowId() + ", RunId=" + execution.getRunId() + + ", WorkflowType=" + + task.getResponse().getWorkflowType().getName() + ", Attempt=" + task.getResponse().getAttempt(), failure);