Skip to content

Commit e03dbd7

Browse files
committed
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.
1 parent 6d09a34 commit e03dbd7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

temporal-sdk/src/main/java/io/temporal/internal/worker/WorkflowWorker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ public Throwable wrapFailure(WorkflowTask task, Throwable failure) {
607607
+ execution.getWorkflowId()
608608
+ ", RunId="
609609
+ execution.getRunId()
610+
+ ", WorkflowType="
611+
+ task.getResponse().getWorkflowType().getName()
610612
+ ", Attempt="
611613
+ task.getResponse().getAttempt(),
612614
failure);

0 commit comments

Comments
 (0)