forked from Archives/Athou_commafeed
limit batch size
This commit is contained in:
@@ -134,7 +134,7 @@ public class FeedRefreshTaskGiver {
|
|||||||
private void refill() {
|
private void refill() {
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
|
|
||||||
int count = 3 * backgroundThreads;
|
int count = Math.min(100, 3 * backgroundThreads);
|
||||||
List<Feed> feeds = null;
|
List<Feed> feeds = null;
|
||||||
if (applicationSettingsService.get().isCrawlingPaused()) {
|
if (applicationSettingsService.get().isCrawlingPaused()) {
|
||||||
feeds = Lists.newArrayList();
|
feeds = Lists.newArrayList();
|
||||||
|
|||||||
Reference in New Issue
Block a user