Skip to content

Commit

Permalink
Items that crawl fails to exempt from the next time
Browse files Browse the repository at this point in the history
  • Loading branch information
koda-masaru committed Sep 21, 2016
1 parent 85fdee8 commit 68f4760
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ private void crawl() throws Exception {
if (knowledgesEntity == null) {
continue;
}
// パースステータスを処理中に変更
itemValue.setItemStatus(KnowledgeItemValuesEntity.STATUS_DO_PROCESS);
itemValuesDao.update(itemValue);

// タグを取得
List<TagsEntity> tagsEntities = TagsDao.get().selectOnKnowledgeId(knowledgesEntity.getKnowledgeId());
// Webアクセス
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ public class KnowledgeItemValuesEntity extends GenKnowledgeItemValuesEntity {
private static final long serialVersionUID = 1L;
/** ステータス: 保存済み */
public static final Integer STATUS_SAVED = 0;
/** ステータス: 処理中 */
public static final Integer STATUS_DO_PROCESS = 1;
/** ステータス: Webの値取得済み */
public static final Integer STATUS_WEBACCESSED = 1;
/** ステータス: Webの値取得済み */
public static final Integer STATUS_WEBACCESSED = 10;
/** ステータス: エラー */
public static final Integer STATUS_WEBACCESS_ERROR = -1;

/**
Expand Down

0 comments on commit 68f4760

Please sign in to comment.