Skip to content

Commit

Permalink
Correctly compute completed backfills (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Surée authored and vguerci committed Jul 19, 2017
1 parent 4ffd3b4 commit 15553cd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ case class TimeSeriesScheduler() extends Scheduler[TimeSeries] with TimeSeriesAp
val itvl = Interval(bf.start, bf.end)
!bf.jobs.forall(job => _state().apply(job).intersect(itvl).toList.forall(_._2 == Done))
}

val _toRun = next(workflow, _state(), now)

(_state(), _backfills.snapshot -- oldBackfills, _toRun)
(_state(), oldBackfills -- _backfills.snapshot, _toRun)
}

val newExecutions = executor.runAll(toRun)
Expand Down

0 comments on commit 15553cd

Please sign in to comment.