11 lines
185 B
Python
11 lines
185 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
import socket
|
|
import uuid
|
|
|
|
INSTANCE_ID: str = (
|
|
os.environ.get("INSTANCE_ID")
|
|
or socket.gethostname()
|
|
or uuid.uuid4().hex[:8]
|
|
) |