pub fn prepare_log_file_path(job_id: u32) -> Result<PathBuf>
Returns the log file path for a job, archiving any existing log first. Only call this when starting a new job execution to avoid losing active logs.