示例#1
0
        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);
            }
        }
示例#2
0
 public override string GetRandomOutputFile(string jobId)
 {
     return(HPCUtilities.GetRandomFile(GetOutputFolder(jobId)));
 }
示例#3
0
 public override string GetOutputFolder(string jobId)
 {
     return(HPCUtilities.EnsureDir(Path.Combine(HPCRoot, "Outputs", jobId)));
 }