Scrapy, a fast high-level web crawling & scraping framework for Python.
better way to stop engine with process signals
olveyrae78f7a93bd2a
diff --git a/scrapy/trunk/scrapy/core/engine.py b/scrapy/trunk/scrapy/core/engine.pyindex b429a4ca1..46c57b6cf 100644--- a/scrapy/trunk/scrapy/core/engine.py+++ b/scrapy/trunk/scrapy/core/engine.py@@ -121,7 +121,6 @@ class ExecutionEngine(object):reactor.listenTCP(*args, **kwargs)self.running = Truereactor.run() # blocking call- self.stop()def stop(self):"""Stop the execution engine"""diff --git a/scrapy/trunk/scrapy/core/manager.py b/scrapy/trunk/scrapy/core/manager.pyindex 191303ce4..2719172c7 100644--- a/scrapy/trunk/scrapy/core/manager.py+++ b/scrapy/trunk/scrapy/core/manager.py@@ -57,7 +57,8 @@ class ExecutionManager(object):"""Start the scrapy server, without scheduling any domains"""self.configure(**opts)scrapyengine.keep_alive = True- scrapyengine.start()+ scrapyengine.start()# blocking call+ self.stop()def stop(self):"""Stop the scrapy server, shutting down the execution engine"""