MCPcopy
hub / github.com/scrapy/scrapy / spider_closed

Method spider_closed

scrapy/extensions/periodic_log.py:166–169  ·  view source on GitHub ↗
(self, spider: Spider, reason: str)

Source from the content-addressed store, hash-verified

164 return any(p in stat_name for p in include)
165
166 def spider_closed(self, spider: Spider, reason: str) -> None:
167 self.log()
168 if self.task and self.task.running:
169 self.task.stop()

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
stopMethod · 0.45

Tested by

no test coverage detected