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

Commit

Permalink
fix timeouts for long running tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
apanicker-nflx committed Nov 25, 2019
1 parent f1ca640 commit 088b030
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -490,7 +490,7 @@ void checkForTimeout(TaskDef taskDef, Task task) {
LOGGER.warn("missing task type " + task.getTaskDefName() + ", workflowId=" + task.getWorkflowInstanceId());
return;
}
if (task.getStatus().isTerminal() || taskDef.getTimeoutSeconds() <= 0 || !task.getStatus().equals(IN_PROGRESS)) {
if (task.getStatus().isTerminal() || taskDef.getTimeoutSeconds() <= 0 || task.getStartTime() <= 0) {
return;
}

Expand Down
Expand Up @@ -175,9 +175,9 @@
"taskDefName": "junit_task_1",
"startDelayInSeconds": 0,
"scheduledTime": 1534990536309,
"startTime": 1534990536315,
"endTime": 1534990536429,
"updateTime": 1534990536429,
"startTime": 0,
"endTime": 0,
"updateTime": 0,
"retried": false,
"executed": false,
"callbackFromWorker": true,
Expand Down Expand Up @@ -209,9 +209,9 @@
"taskDefName": "junit_task_1",
"startDelayInSeconds": 0,
"scheduledTime": 1534990536329,
"startTime": 1534990536335,
"endTime": 1534990536449,
"updateTime": 1534990536449,
"startTime": 0,
"endTime": 0,
"updateTime": 0,
"retried": false,
"executed": false,
"callbackFromWorker": true,
Expand Down

0 comments on commit 088b030

Please sign in to comment.