def soap_getRunStatus(self, ps, **kw): response = SimulatorService.soap_getRunStatus(self, ps, **kw) #get the run id of the job request = ps.Parse(getRunStatusRequest.typecode) runId = request._runId response._runStatus = self.factory.new_RunStatus() response._runStatus._status = 'RUNNING' response._runStatus._message = 'the run is currently running' return response
def soap_getRunStatus(self, ps, **kw): response = SimulatorService.soap_getRunStatus(self, ps, **kw) #get the run id of the job request = ps.Parse(getRunStatusRequest.typecode) runId = request._runId status, message = fredConn._getStatus(runId) response._runStatus = self.factory.new_RunStatus() print "Fred status is:" + status response._runStatus._status = status.lower() print "Fred message is:" + message response._runStatus._message = message return response