def data_jobs(self): """ Return a summary of the job queue. @return: a string containing the JSON result. @rtype: L{str} """ if self.factory.store: txn = self.factory.store.newTransaction() records = (yield JobItem.histogram(txn)) yield txn.commit() else: records = {} returnValue(records)
def data_jobs(self): """ Return a summary of the job queue. @return: a string containing the JSON result. @rtype: L{str} """ if self.factory.store: txn = self.factory.store.newTransaction() records = (yield JobItem.histogram(txn)) yield txn.commit() else: records = {} returnValue(records)