Release NVIDIA WakeWord Trainer v23

This commit is contained in:
MasterPhooey
2026-08-03 06:45:32 -05:00
parent 2a88090b85
commit 1f16f6f916
4 changed files with 68 additions and 22 deletions

View File

@@ -3110,8 +3110,9 @@ def _run_training_background(
with DATA_MANAGEMENT_LOCK:
with STATE_LOCK:
if STATE["training"]["running"]:
return JSONResponse({"ok": False, "error": "Training already running"}, status_code=400)
# The API or auto-training scheduler reserves the run by setting
# this flag before the thread starts. Duplicate starts are already
# rejected there and by _start_training_thread's runtime lock.
STATE["training"]["running"] = True
STATE["training"]["exit_code"] = None
STATE["training"]["log_lines"] = []