Skip to content

Commit

Permalink
Fix timeseries lastruns api (#322)
Browse files Browse the repository at this point in the history
* Paused jobs remain paused at restart

Fix a bug where after a deployment, all paused jobs were un-paused.

* Fix timeseries/lastruns API endpoint
  • Loading branch information
Masuzu authored Nov 13, 2018
1 parent 37888b7 commit 968c4cc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,10 @@ private[timeseries] case class TimeSeriesApp(project: CuttleProject, executor: E
.filter(s => s._1.id == jobId)
.values
.flatMap(m => m.toList)
.filter(i => i._2 == JobState.Done)
.filter { case (interval, jobState) => jobState match {
case Done(_) => true
case _ => false
}}

if (successfulIntervalMaps.isEmpty) NotFound
else {
Expand Down

0 comments on commit 968c4cc

Please sign in to comment.