Skip to content

Commit

Permalink
only cleanup the first 10 build plans (for testing purposes to see ho…
Browse files Browse the repository at this point in the history
…w the functionality behaves on production)

Signed-off-by: Stephan Krusche <[email protected]>
  • Loading branch information
Stephan Krusche committed Mar 12, 2019
1 parent e83d341 commit a4a44a5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ public void cleanupBuildPlans() {
List<String> buildPlanIds = participationsWithBuildPlanToDelete.stream().map(Participation::getBuildPlanId).collect(Collectors.toList());
log.info("Build plans to cleanup: " + buildPlanIds);

for (Participation participation : participationsWithBuildPlanToDelete) {
//For testing purposes, we only take the first 10 build plans for now
//TODO: in the future: increase this number to 100 and then to 1000

for (Participation participation : participationsWithBuildPlanToDelete.stream().limit(10).collect(Collectors.toList())) {
try {
participationService.cleanupBuildPlan(participation);
}
Expand Down

0 comments on commit a4a44a5

Please sign in to comment.