MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / get_max_duration_sec

Function get_max_duration_sec

app/core/settings.py:96–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95# ── max_duration_sec ──
96def get_max_duration_sec() -> int:
97 with _LOCK:
98 v = _num(_ensure().get("max_duration_sec"))
99 return max(_DURATION_MIN, min(_DURATION_MAX, v)) if v is not None else MAX_DURATION_SEC
100
101
102def set_max_duration_sec(value: int) -> int:

Callers 3

_settings_payloadFunction · 0.90
_create_local_jobFunction · 0.90
downloadFunction · 0.90

Calls 2

_numFunction · 0.85
_ensureFunction · 0.85

Tested by

no test coverage detected