Skip to content

Commit

Permalink
fix(sql): Limit the number of returned buffered executions (#4069)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
robzienert and mergify[bot] committed Mar 3, 2021
1 parent 5cba4b4 commit fa87edf
Showing 1 changed file with 3 additions and 1 deletion.
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.