Skip to content

Commit e5d5097

Browse files
ikiboJoshua152
authored andcommitted
Interval schedule should take start time from the request, should not set it to the current time of request execution. (opensearch-project#1036)
Signed-off-by: Oleg Kravchuk <oleg.ikibo@gmail.com> Signed-off-by: Joshua Au <joshuahyau@gmail.com>
1 parent deb7117 commit e5d5097

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/org/opensearch/indexmanagement/transform/model

1 file changed

+1
-1
lines changed

src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ data class Transform(
387387
if (seqNo == SequenceNumbers.UNASSIGNED_SEQ_NO || primaryTerm == SequenceNumbers.UNASSIGNED_PRIMARY_TERM) {
388388
// we instantiate the start time
389389
if (schedule is IntervalSchedule) {
390-
schedule = IntervalSchedule(Instant.now(), schedule.interval, schedule.unit)
390+
schedule = IntervalSchedule(schedule.startTime, schedule.interval, schedule.unit)
391391
}
392392

393393
// we clear out metadata if its a new job

0 commit comments

Comments
 (0)