MCPcopy
hub / github.com/scrapy/scrapy / _signal_kill_reactorless

Method _signal_kill_reactorless

scrapy/crawler.py:1031–1037  ·  view source on GitHub ↗
(self, signum: int, _: Any)

Source from the content-addressed store, hash-verified

1029 self._reactorless_main_task.cancel()
1030
1031 def _signal_kill_reactorless(self, signum: int, _: Any) -> None:
1032 install_shutdown_handlers(signal.SIG_IGN)
1033 self._log_kill(signum)
1034 if (loop := self._reactorless_loop) is None:
1035 return
1036 if (task := self._reactorless_main_task) is not None:
1037 loop.call_soon_threadsafe(task.cancel)
1038
1039 def _start_twisted(
1040 self, stop_after_crawl: bool, install_signal_handlers: bool

Callers

nothing calls this directly

Calls 2

_log_killMethod · 0.80

Tested by

no test coverage detected