Commit dc2eab67 authored by Juergen Enge's avatar Juergen Enge

crawlerror including lastcheck<lastchange

parent 8c9afab8
Pipeline #17742 passed with stages
in 1 minute and 59 seconds
......@@ -156,8 +156,13 @@ func (cr *Crawler) CrawlError() error {
sqlstr := fmt.Sprintf("SELECT sig AS signature, uri, access, proto AS protocol, `status` "+
" FROM %s.entities"+
" WHERE status='error'"+
" AND lastcheck > TIMESTAMPADD(SECOND, ?, NOW())"+
" AND lastcheck < TIMESTAMPADD(SECOND, ?, NOW())"+
" AND ("+
" lastcheck < lastchange"+
" OR ("+
" lastcheck > TIMESTAMPADD(SECOND, ?, NOW())"+
" AND lastcheck < TIMESTAMPADD(SECOND, ?, NOW())"+
" )"+
")"+
" ORDER BY lastchange ASC", cr.schema)
for {
entries, err := cr.getEntries(sqlstr, int64(cr.crawlErrorNew/time.Second), int64(cr.crawlError/time.Second))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment