Skip to content

Commit

Permalink
Interval schedule should take start time from the request, should not…
Browse files Browse the repository at this point in the history
… set it to the current time of request execution. (#1036) (#1038)

(cherry picked from commit 6810b0c)

Signed-off-by: Oleg Kravchuk <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 11aa446 commit 5459dd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ data class Transform(
if (seqNo == SequenceNumbers.UNASSIGNED_SEQ_NO || primaryTerm == SequenceNumbers.UNASSIGNED_PRIMARY_TERM) {
// we instantiate the start time
if (schedule is IntervalSchedule) {
schedule = IntervalSchedule(Instant.now(), schedule.interval, schedule.unit)
schedule = IntervalSchedule(schedule.startTime, schedule.interval, schedule.unit)
}

// we clear out metadata if its a new job
Expand Down

0 comments on commit 5459dd4

Please sign in to comment.