Skip to content

Commit

Permalink
fix(web): Enforce limit on previous redis for app pipelines endpoint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert authored Sep 27, 2017
1 parent ca4fa9c commit fd1fa9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class TaskController {
executionRepository.retrievePipelinesForPipelineConfigId(it, executionCriteria)
}).subscribeOn(Schedulers.io()).toList().toBlocking().single().sort(startTimeOrId)

return filterPipelinesByHistoryCutoff(allPipelines)
return filterPipelinesByHistoryCutoff(allPipelines).take(limit)
}

private List<Pipeline> filterPipelinesByHistoryCutoff(List<Pipeline> pipelines) {
Expand Down

0 comments on commit fd1fa9f

Please sign in to comment.