Merge "Enhance logging of status_get requests"
This commit is contained in:
commit
e65ae79d46
|
@ -377,7 +377,12 @@ class RPCListener(RPCListenerBase):
|
|||
|
||||
def handle_status_get(self, job):
|
||||
args = json.loads(job.arguments)
|
||||
start = time.monotonic()
|
||||
output = self.sched.formatStatusJSON(args.get("tenant"))
|
||||
end = time.monotonic()
|
||||
self.log.debug('Formatting tenant %s status took %.3f seconds for '
|
||||
'%d bytes', args.get("tenant"), end - start,
|
||||
len(output))
|
||||
job.sendWorkComplete(output)
|
||||
|
||||
def handle_job_get(self, gear_job):
|
||||
|
|
Loading…
Reference in New Issue