added
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user