Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/10 18:22:25 (13 years ago)
Author:
cneumuel
Message:

#1260

  • implemented single sign on with services
  • fixed plugin-deployment
  • removed hive-specific userConfig sections
  • minor bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/JobStorage/JobStorageManager.cs

    r4772 r4914  
    6161    public static void CheckAndSubmitJobsFromDisc() {
    6262      for (int index = storedJobsList.Count; index > 0; index--) {
    63         if (storedJobsList[index - 1].ServerIP == WcfService.Instance.ServerIp) {
    64           String filename = storedJobsList[index - 1].ServerIP + "." + storedJobsList[index - 1].ServerPort + "." + storedJobsList[index - 1].JobID.ToString();
    65           Logger.Info("Sending stored job " + storedJobsList[index - 1].JobID + " to the server");
    66           try {
    67             byte[] job = File.ReadAllBytes(path + filename + ".dat");
    68             if (WcfService.Instance.IsJobStillNeeded(storedJobsList[index - 1].JobID).StatusMessage == ResponseStatus.Ok) {
    69               ResponseResultReceived res = WcfService.Instance.StoreFinishedJobResultsSync(ConfigManager.Instance.GetClientInfo().Id, storedJobsList[index - 1].JobID, job, TimeSpan.Zero, null, true); // unfortunately we do not have the correct ExecutionTime since we would need to unzip the job for that
    70               Logger.Info("Sending of job " + storedJobsList[index - 1].JobID + " done");
    71             }
    72             SlaveStatusInfo.JobsProcessed++;
    73             storedJobsList.Remove(storedJobsList[index - 1]);
    74             File.Delete(path + filename + ".dat");
     63        String filename = storedJobsList[index - 1].ServerIP + "." + storedJobsList[index - 1].ServerPort + "." + storedJobsList[index - 1].JobID.ToString();
     64        Logger.Info("Sending stored job " + storedJobsList[index - 1].JobID + " to the server");
     65        try {
     66          byte[] job = File.ReadAllBytes(path + filename + ".dat");
     67          if (WcfService.Instance.IsJobStillNeeded(storedJobsList[index - 1].JobID).StatusMessage == ResponseStatus.Ok) {
     68            ResponseResultReceived res = WcfService.Instance.StoreFinishedJobResultsSync(ConfigManager.Instance.GetClientInfo().Id, storedJobsList[index - 1].JobID, job, TimeSpan.Zero, null, true); // unfortunately we do not have the correct ExecutionTime since we would need to unzip the job for that
     69            Logger.Info("Sending of job " + storedJobsList[index - 1].JobID + " done");
    7570          }
    76           catch (Exception e) {
    77             Logger.Error("Job not on hdd but on list - deleting job from list ", e);
    78             storedJobsList.Remove(storedJobsList[index - 1]);
    79             StoreJobList();
    80           }
     71          SlaveStatusInfo.JobsProcessed++;
     72          storedJobsList.Remove(storedJobsList[index - 1]);
     73          File.Delete(path + filename + ".dat");
     74        }
     75        catch (Exception e) {
     76          Logger.Error("Job not on hdd but on list - deleting job from list ", e);
     77          storedJobsList.Remove(storedJobsList[index - 1]);
     78          StoreJobList();
    8179        }
    8280      }
Note: See TracChangeset for help on using the changeset viewer.