mirror of https://github.com/scrapy/scrapy.git
delay next_request check after stoping a spider close to avoid 100% cpu usage loops in some cases
This commit is contained in:
parent
aeab5370cb
commit
445d8cd9f0
|
|
@ -260,7 +260,7 @@ class ExecutionEngine(object):
|
|||
dispatcher.send(signal=signals.spider_idle, sender=self.__class__, \
|
||||
spider=spider)
|
||||
except DontCloseDomain:
|
||||
self.next_request(spider)
|
||||
reactor.callLater(5, self.next_request, spider)
|
||||
return
|
||||
except:
|
||||
log.err("Exception catched on spider_idle signal dispatch")
|
||||
|
|
|
|||
Loading…
Reference in New Issue