summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zuul/scheduler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/zuul/scheduler.py b/zuul/scheduler.py
index 811943af1..7d492a849 100644
--- a/zuul/scheduler.py
+++ b/zuul/scheduler.py
@@ -1075,6 +1075,7 @@ class Scheduler(threading.Thread):
self.connections, self.zk_client, self.globals, self.statsd, self,
self.merger, self.keystore)
with self.layout_lock:
+ start = time.monotonic()
log.debug("Updating local layout of tenant %s ", tenant_name)
layout_state = self.tenant_layout_state.get(tenant_name)
layout_uuid = layout_state and layout_state.uuid
@@ -1097,6 +1098,10 @@ class Scheduler(threading.Thread):
with suppress(KeyError):
del self.local_layout_state[tenant_name]
+ duration = round(time.monotonic() - start, 3)
+ self.log.info("Local layout update complete for %s (duration: %s "
+ "seconds)", tenant_name, duration)
+
def _checkTenantSourceConf(self, config):
tenant_config = None
script = False