Skip to content

Commit

Permalink
fix(sql): Limit the number of returned buffered executions (spinnaker…
Browse files Browse the repository at this point in the history
…#4069)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
robzienert and mergify[bot] authored Mar 3, 2021
1 parent 5cba4b4 commit fa87edf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,9 @@ class SqlExecutionRepository(
}

override fun retrieveBufferedExecutions(): MutableList<PipelineExecution> =
ExecutionCriteria().setStatuses(BUFFERED)
ExecutionCriteria()
.setPageSize(100)
.setStatuses(BUFFERED)
.let { criteria ->
rx.Observable.merge(
retrieve(ORCHESTRATION, criteria, partitionName),
Expand Down

0 comments on commit fa87edf

Please sign in to comment.