Skip to content

Commit 06855df

Browse files
committed
doc: Clarify UnableToAcquireLockException (#2359)
GitHub Issue #2359
1 parent 9a8894a commit 06855df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,12 @@ public void handle(WorkflowTask task) throws Exception {
355355

356356
if (!locked) {
357357
throw new UnableToAcquireLockException(
358-
"Workflow lock for the run id hasn't been released by one of previous execution attempts, "
359-
+ "consider increasing workflow task timeout.");
358+
"Workflow lock for the run id hasn't been released by one of previous execution attempts. "
359+
+ "This likely means the workflow task timed out, and the Service attempted to "
360+
+ "retry the task on the same Worker while the timed out Task had not finished yet. "
361+
+ "We suggest investigating why the Workflow Task timed out. This could mean "
362+
+ "looking at Worker resource utilization at the time in which this exception was thrown or "
363+
+ "increasing workflow task timeout.");
360364
}
361365
}
362366

0 commit comments

Comments
 (0)