Skip to content

Commit

Permalink
Merge pull request #474 from support-project/fix/crawl_status
Browse files Browse the repository at this point in the history
Items that crawl fails to exempt from the next time
  • Loading branch information
koda-masaru authored Oct 4, 2016
2 parents 85fdee8 + 68f4760 commit f65a33e
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 f65a33e

Please sign in to comment.