fix to update runcount only when the document is supported
cr:
@@ -313,6 +313,7 @@ func (p *EngineProcessor) processInProgressDocuments(skipDocumentIfExpired bool)
//inspect document state
docState := p.documentMgr.GetDocumentState(f.Name(), appconfig.DefaultLocationOfCurrent)
+ if p.isSupportedDocumentType(docState.DocumentType) {
retryLimit := config.Mds.CommandRetryLimit
if docState.DocumentInformation.RunCount >= retryLimit {
p.documentMgr.MoveDocumentState(f.Name(), appconfig.DefaultLocationOfCurrent, appconfig.DefaultLocationOfCorrupt)
@@ -324,9 +325,7 @@ func (p *EngineProcessor) processInProgressDocuments(skipDocumentIfExpired bool)
p.documentMgr.PersistDocumentState(docState.DocumentInformation.DocumentID, appconfig.DefaultLocationOfCurrent, docState)
- if p.isSupportedDocumentType(docState.DocumentType) {
log.Infof("Processing in-progress document %v", docState.DocumentInformation.DocumentID)
-
if skipDocumentIfExpired && docState.DocumentInformation.CreatedDate != "" {
createDate := times.ParseIso8601UTC(docState.DocumentInformation.CreatedDate)
