MCPcopy
hub / github.com/dataelement/Clawith / _default_instance_id

Function _default_instance_id

backend/app/config.py:38–43  ·  view source on GitHub ↗

Generate a stable-enough per-process instance identifier.

()

Source from the content-addressed store, hash-verified

36
37
38def _default_instance_id() -> str:
39 """Generate a stable-enough per-process instance identifier."""
40 host = socket.gethostname() or "unknown"
41 pid = os.getpid()
42 suffix = uuid.uuid4().hex[:8]
43 return f"{host}-{pid}-{suffix}"
44
45
46def _default_agent_template_dir() -> str:

Callers 1

SettingsClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected