diff --git a/core/src/main/java/com/netflix/conductor/core/execution/mapper/WaitTaskMapper.java b/core/src/main/java/com/netflix/conductor/core/execution/mapper/WaitTaskMapper.java index fc4abefa0e..6a3ca95d12 100644 --- a/core/src/main/java/com/netflix/conductor/core/execution/mapper/WaitTaskMapper.java +++ b/core/src/main/java/com/netflix/conductor/core/execution/mapper/WaitTaskMapper.java @@ -110,7 +110,7 @@ void setCallbackAfter(TaskModel task) { Date expiryDate = parseDate(until); long timeInMS = expiryDate.getTime(); long now = System.currentTimeMillis(); - long seconds = ((timeInMS - now) / 1000) + 1; + long seconds = ((timeInMS - now) / 1000); if (seconds < 0) { seconds = 0; }