MCPcopy Create free account
hub / github.com/dask/dask / _enforce_max_key_limit

Function _enforce_max_key_limit

dask/optimization.py:422–426  ·  view source on GitHub ↗
(key_name)

Source from the content-addressed store, hash-verified

420 max_fused_key_length -= 5
421
422 def _enforce_max_key_limit(key_name):
423 if max_fused_key_length and len(key_name) > max_fused_key_length:
424 name_hash = f"{hash(key_name):x}"[:4]
425 key_name = f"{key_name[:max_fused_key_length]}-{name_hash}"
426 return key_name
427
428 if typ is str:
429 first_name = utils.key_split(first_key)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected