def do_JobStatusRequest(self, elem, *args, **kw): log.debug("=============== XenBEEClient2BrokerProtocol::do_JobStatusRequest") msgin = message.MessageBuilder.from_xml(elem.getroottree()) job = self.getJobByTicket(msgin.ticket()) if job is None: msg = message.Error(errcode.TICKET_INVALID, msgin.ticket()) else: msg = message.JobStatusResponse(msgin.ticket(), job.task(), job.getTime(), job.getCost(), job.getStart(), job.getEnd(), job.getState()) if (job.getState()=='JobFSM.StFinishedClosing'): job.do_Event("closeJob_Closed", self) #return msg self.sendReply(msg)
def inProviderClose(self, job, brokerCtxt): log.debug("XenBEEBrokerProtocolFactory::") job = brokerCtxt.getJob() log.debug("Time for Job: %f", job.getTime())