From ee190d52ba127f6812ad65fc403e18eda3c08ba8 Mon Sep 17 00:00:00 2001 From: manan164 <1897158+manan164@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:43:26 +0530 Subject: [PATCH] Wait until calculation fix. --- .../netflix/conductor/core/execution/mapper/WaitTaskMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }