Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix time out
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwanbin committed Nov 27, 2023
1 parent fb70f49 commit db047c5
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,13 @@ void unack(WorkflowModel workflowModel, long workflowOffsetTimeout) {
postponeDurationSeconds = taskDef.getPollTimeoutSeconds() + 1;
} else {
postponeDurationSeconds =
(workflowModel.getWorkflowDefinition().getTimeoutSeconds() != 0)
? workflowModel.getWorkflowDefinition().getTimeoutSeconds()
+ 1
workflowModel.getWorkflowDefinition().getTimeoutSeconds();
if (postponeDurationSeconds > taskModel.getResponseTimeoutSeconds()) {
postponeDurationSeconds = taskModel.getResponseTimeoutSeconds();
}
postponeDurationSeconds =
(postponeDurationSeconds != 0)
? postponeDurationSeconds + 1
: workflowOffsetTimeout;
}
} else {
Expand Down

0 comments on commit db047c5

Please sign in to comment.