configs for dev and prod

This commit is contained in:
Athou
2014-08-09 19:35:05 +02:00
parent afbbd07a13
commit c5e9e60ab0
5 changed files with 69 additions and 17 deletions

View File

@@ -87,9 +87,6 @@ public class CommaFeedConfiguration extends Configuration {
@JsonProperty
private int queryTimeout;
@JsonProperty
private boolean crawlingPaused;
@JsonProperty
private int keepStatusDays;

View File

@@ -96,13 +96,11 @@ public class FeedQueues {
}
// add feeds that are up to refresh from the database
if (!config.getApplicationSettings().isCrawlingPaused()) {
int count = batchSize - contexts.size();
if (count > 0) {
List<Feed> feeds = feedDAO.findNextUpdatable(count, getLastLoginThreshold());
for (Feed feed : feeds) {
contexts.add(new FeedRefreshContext(feed, false));
}
int count = batchSize - contexts.size();
if (count > 0) {
List<Feed> feeds = feedDAO.findNextUpdatable(count, getLastLoginThreshold());
for (Feed feed : feeds) {
contexts.add(new FeedRefreshContext(feed, false));
}
}