478
479
for _, bfr := range patch.BackfillRequest {
480
>
// In previous versions the backfill start time was exclusive, ie when
workflow.go
481
>
// the start time of the backfill matched the schedule's spec, it would
482
>
// not be executed. This new version makes it inclusive instead.
483
>
if s.hasMinVersion(InclusiveBackfillStartTime) {
484
>
startTime := timestamp.TimeValue(bfr.GetStartTime()).Add(-1 * time.Millisecond)
485
>
bfr.StartTime = timestamppb.New(startTime)
486
>
}
487
>
if s.hasMinVersion(IncrementalBackfill) {
488
>
// Add to ongoing backfills to process incrementally
489
>
if len(s.State.OngoingBackfills) >= s.tweakables.MaxBufferSize {
490
s.logger.Warn("Buffer overrun for backfill requests")
491
s.metrics.Counter(metrics.ScheduleBufferOverruns.Name()).Inc(1)