fix: server bug fixes from review
- DB: add threading.Lock on all write methods and multi-step reads - export.py: check audio extraction return code, raise on failure - routes/export: counter race condition fix with _counter_lock - routes/export: delete validation accepts EXPORT_DIR_suffix siblings - routes/export: evict old finished jobs to prevent unbounded growth - client plan: fix 10 bugs (mpv IPC, encodePath, input_path sep, etc.) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -91,7 +91,10 @@ class ExportRunner:
|
||||
raise RuntimeError(msg)
|
||||
if self._image_sequence:
|
||||
audio_cmd = build_audio_extract_command(self._input, start, output)
|
||||
subprocess.run(audio_cmd, capture_output=True, text=True, timeout=60)
|
||||
audio_result = subprocess.run(audio_cmd, capture_output=True, text=True, timeout=60)
|
||||
if audio_result.returncode != 0:
|
||||
msg = (audio_result.stderr or "audio extraction failed")[-500:]
|
||||
raise RuntimeError(msg)
|
||||
return output
|
||||
|
||||
def _run(self):
|
||||
|
||||
Reference in New Issue
Block a user