better way to stop engine with process signals

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4046
This commit is contained in:
olveyra 2008-07-07 17:51:09 +00:00
parent 648b312bca
commit e78f7a93bd
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,6 @@ class ExecutionEngine(object):
reactor.listenTCP(*args, **kwargs)
self.running = True
reactor.run() # blocking call
self.stop()
def stop(self):
"""Stop the execution engine"""

View File

@ -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"""