This commit is contained in:
2026-01-12 12:18:42 -05:00
parent 2a7878ddad
commit 8ea92ea842
8 changed files with 27 additions and 4 deletions
@@ -1,6 +1,7 @@
import argparse
import os
import sys
import socket
from dotenv import load_dotenv
# Load environment variables from central .env_files directory
@@ -183,7 +184,8 @@ def process_file(file_path, args, source_lang=None, loaded_model=None, service_s
tracker.logger.error(f"VALIDATION FAILED: {msg}")
tracker.logger.error("Marking translation as failed due to incomplete coverage.")
redo_file = os.path.join(os.path.dirname(file_path), "redo_queue.txt")
hostname = socket.gethostname()
redo_file = os.path.join(os.path.dirname(file_path), f"redo_queue_{hostname}.txt")
with open(redo_file, "a", encoding="utf-8") as rf:
rf.write(f"{file_path} | {msg}\n")