Skip to content

Commit de33b3a

Browse files
Update docs for max workflow task timeout (#2396)
Update docs for max workflow task timeout
1 parent f93910b commit de33b3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

temporal-sdk/src/main/java/io/temporal/client/WorkflowOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public Builder setWorkflowExecutionTimeout(Duration workflowExecutionTimeout) {
266266
* duration in any way. It defines for how long the Workflow can get blocked in the case of a
267267
* Workflow Worker crash.
268268
*
269-
* <p>Default is 10 seconds. Maximum value allowed by the Temporal Server is 1 minute.
269+
* <p>Default is 10 seconds. Maximum value allowed by the Temporal Server is 120 seconds.
270270
*/
271271
public Builder setWorkflowTaskTimeout(Duration workflowTaskTimeout) {
272272
this.workflowTaskTimeout = workflowTaskTimeout;

temporal-sdk/src/main/java/io/temporal/workflow/ChildWorkflowOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ public Builder setWorkflowExecutionTimeout(Duration workflowExecutionTimeout) {
197197

198198
/**
199199
* Maximum execution time of a single workflow task. Default is 10 seconds. Maximum accepted
200-
* value is 60 seconds.
200+
* value is 120 seconds.
201201
*/
202202
public Builder setWorkflowTaskTimeout(Duration workflowTaskTimeout) {
203-
if (roundUpToSeconds(workflowTaskTimeout) > 60) {
203+
if (roundUpToSeconds(workflowTaskTimeout) > 120) {
204204
throw new IllegalArgumentException(
205-
"WorkflowTaskTimeout over one minute: " + workflowTaskTimeout);
205+
"WorkflowTaskTimeout over two minutes: " + workflowTaskTimeout);
206206
}
207207
this.workflowTaskTimeout = workflowTaskTimeout;
208208
return this;

0 commit comments

Comments
 (0)