MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / _ensure_deploys

Function _ensure_deploys

ci3/ci-metrics/github_data.py:144–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144def _ensure_deploys():
145 now = time.time()
146 if _deploy_cache['data'] and now - _deploy_cache['ts'] < _CACHE_TTL:
147 return
148 if not _deploy_lock.acquire(blocking=False):
149 return
150 try:
151 deploys = _fetch_all_deploys()
152 if deploys:
153 _deploy_cache['data'] = deploys
154 _deploy_cache['ts'] = now
155 finally:
156 _deploy_lock.release()
157
158
159# ---- Branch lag ----

Callers 1

get_deployment_speedFunction · 0.85

Calls 4

_fetch_all_deploysFunction · 0.85
timeMethod · 0.80
acquireMethod · 0.65
releaseMethod · 0.65

Tested by

no test coverage detected