MCPcopy
hub / github.com/scrapy/scrapy / stop

Method stop

scrapy/crawler.py:474–480  ·  view source on GitHub ↗

Stops simultaneously all the crawling jobs taking place. Returns a deferred that is fired when they all have ended.

(self)

Source from the content-addressed store, hash-verified

472 self.bootstrap_failed |= not getattr(crawler, "spider", None) or failed
473
474 def stop(self) -> Deferred[Any]:
475 """
476 Stops simultaneously all the crawling jobs taking place.
477
478 Returns a deferred that is fired when they all have ended.
479 """
480 return DeferredList(deferred_from_coro(c.stop_async()) for c in self.crawlers)
481
482 @inlineCallbacks
483 def join(self) -> Generator[Deferred[Any], Any, None]:

Callers

nothing calls this directly

Calls 2

deferred_from_coroFunction · 0.90
stop_asyncMethod · 0.45

Tested by

no test coverage detected