mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-23 21:44:19 +00:00
fixed bug with process manager status() method
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40326
This commit is contained in:
parent
21c08e39f8
commit
1c74260752
@ -38,8 +38,8 @@ class ScrapyProcessProtocol(protocol.ProcessProtocol):
|
||||
def __str__(self):
|
||||
return "<ScrapyProcess domain=%s, pid=%s, status=%s>" % (self.domain, self.pid, self.status)
|
||||
|
||||
def status(self):
|
||||
"""Return this scrapy process status as a dict.
|
||||
def info(self):
|
||||
"""Return this scrapy process info as a dict.
|
||||
|
||||
The keys are:
|
||||
|
||||
@ -115,7 +115,7 @@ class ClusterWorker(pb.Root):
|
||||
"""
|
||||
|
||||
status = {}
|
||||
status["running"] = [self.running[k].status() for k in self.running.keys()]
|
||||
status["running"] = [self.running[k].info() for k in self.running.keys()]
|
||||
status["starttime"] = self.starttime
|
||||
status["timestamp"] = datetime.datetime.utcnow()
|
||||
status["maxproc"] = self.maxproc
|
||||
|
Loading…
x
Reference in New Issue
Block a user