MCPcopy
hub / github.com/scrapy/scrapy / _check_if_closing

Method _check_if_closing

scrapy/core/scraper.py:210–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208 return not self.slot
209
210 def _check_if_closing(self) -> None:
211 assert self.slot is not None # typing
212 if self.slot.closing and self.slot.is_idle():
213 assert self.crawler.spider
214 self.slot.closing.callback(self.crawler.spider)
215
216 @inlineCallbacks
217 def enqueue_scrape(

Callers 2

close_spider_asyncMethod · 0.95
enqueue_scrapeMethod · 0.95

Calls 2

callbackMethod · 0.80
is_idleMethod · 0.45

Tested by

no test coverage detected