public override void LogInfo(string info) { try { string logDir = Path.Combine(HPCRoot, "Logs"); HPCUtilities.EnsureDir(logDir); string logFile = Path.Combine(logDir, LogName); using (StreamWriter sw = new StreamWriter(logFile, true)) { sw.WriteLine(info); } } catch (Exception ex) { Console.Error.WriteLine(ex.Message); } }
public override string GetRandomOutputFile(string jobId) { return(HPCUtilities.GetRandomFile(GetOutputFolder(jobId))); }
public override string GetOutputFolder(string jobId) { return(HPCUtilities.EnsureDir(Path.Combine(HPCRoot, "Outputs", jobId))); }