Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for max workflow task timeout #2396

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public Builder setWorkflowExecutionTimeout(Duration workflowExecutionTimeout) {
* duration in any way. It defines for how long the Workflow can get blocked in the case of a
* Workflow Worker crash.
*
* <p>Default is 10 seconds. Maximum value allowed by the Temporal Server is 1 minute.
* <p>Default is 10 seconds. Maximum value allowed by the Temporal Server is 120 seconds.
*/
public Builder setWorkflowTaskTimeout(Duration workflowTaskTimeout) {
this.workflowTaskTimeout = workflowTaskTimeout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ public Builder setWorkflowExecutionTimeout(Duration workflowExecutionTimeout) {

/**
* Maximum execution time of a single workflow task. Default is 10 seconds. Maximum accepted
* value is 60 seconds.
* value is 120 seconds.
*/
public Builder setWorkflowTaskTimeout(Duration workflowTaskTimeout) {
if (roundUpToSeconds(workflowTaskTimeout) > 60) {
if (roundUpToSeconds(workflowTaskTimeout) > 120) {
throw new IllegalArgumentException(
"WorkflowTaskTimeout over one minute: " + workflowTaskTimeout);
"WorkflowTaskTimeout over two minutes: " + workflowTaskTimeout);
}
this.workflowTaskTimeout = workflowTaskTimeout;
return this;
Expand Down
Loading