Browse Source

Merge "Enhance logging of status_get requests"

changes/74/777874/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
e65ae79d46
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      zuul/rpclistener.py

+ 5
- 0
zuul/rpclistener.py View File

@ -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…
Cancel
Save