mirror of https://github.com/scrapy/scrapy.git
better way to stop engine with process signals
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4046
This commit is contained in:
parent
648b312bca
commit
e78f7a93bd
|
|
@ -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"""
|
||||
|
|
|
|||
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue