Merge "Enable maintainConnectionCache" into feature/zuulv3
This commit is contained in:
commit
b143da59fe
|
@ -585,8 +585,7 @@ class Scheduler(threading.Thread):
|
|||
|
||||
self._reenqueueTenant(old_tenant, tenant)
|
||||
|
||||
# TODOv3(jeblair): update for tenants
|
||||
# self.maintainConnectionCache()
|
||||
self.maintainConnectionCache()
|
||||
self.connections.reconfigureDrivers(tenant)
|
||||
|
||||
# TODOv3(jeblair): remove postconfig calls?
|
||||
|
@ -719,7 +718,6 @@ class Scheduler(threading.Thread):
|
|||
self.run_handler_lock.release()
|
||||
|
||||
def maintainConnectionCache(self):
|
||||
# TODOv3(jeblair): update for tenants
|
||||
relevant = set()
|
||||
for tenant in self.abide.tenants.values():
|
||||
for pipeline in tenant.layout.pipelines.values():
|
||||
|
@ -729,7 +727,7 @@ class Scheduler(threading.Thread):
|
|||
for item in pipeline.getAllItems():
|
||||
relevant.add(item.change)
|
||||
relevant.update(item.change.getRelatedChanges())
|
||||
for connection in self.connections.values():
|
||||
for connection in self.connections.connections.values():
|
||||
connection.maintainCache(relevant)
|
||||
self.log.debug(
|
||||
"End maintain connection cache for: %s" % connection)
|
||||
|
|
Loading…
Reference in New Issue