Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/12/11 18:04:25 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed a bug in the Slave UI
  • finished renaming Webservice and Dao methods to be consistent with Job/Task naming
  • some cosmetic changes and project dependencies cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.3/Core.cs

    r6725 r6743  
    232232      int usedCores = 0;
    233233      try {
    234         task = wcfService.GetJob(taskId);
     234        task = wcfService.GetTask(taskId);
    235235        if (task == null) throw new TaskNotFoundException(taskId);
    236236        if (ConfigManager.Instance.GetFreeCores() < task.CoresNeeded) throw new OutOfCoresException();
    237237        if (ConfigManager.GetFreeMemory() < task.MemoryNeeded) throw new OutOfMemoryException();
    238238        SlaveStatusInfo.IncrementUsedCores(task.CoresNeeded); usedCores = task.CoresNeeded;
    239         TaskData taskData = wcfService.GetJobData(taskId);
     239        TaskData taskData = wcfService.GetTaskData(taskId);
    240240        if (taskData == null) throw new TaskDataNotFoundException(taskId);
    241241        task = wcfService.UpdateJobState(taskId, TaskState.Calculating, null);
     
    273273      Guid taskId = (Guid)taskIdObj;
    274274      try {
    275         Task task = wcfService.GetJob(taskId);
     275        Task task = wcfService.GetTask(taskId);
    276276        if (task == null) throw new TaskNotFoundException(taskId);
    277277        taskManager.StopTaskAsync(taskId);
     
    291291      Guid taskId = (Guid)taskIdObj;
    292292      try {
    293         Task task = wcfService.GetJob(taskId);
     293        Task task = wcfService.GetTask(taskId);
    294294        if (task == null) throw new TaskNotFoundException(taskId);
    295295        taskManager.PauseTaskAsync(taskId);
     
    334334        SlaveStatusInfo.DecrementUsedCores(e.Value.CoresNeeded);
    335335        heartbeatManager.AwakeHeartBeatThread();
    336         Task task = wcfService.GetJob(e.Value.TaskId);
     336        Task task = wcfService.GetTask(e.Value.TaskId);
    337337        if (task == null) throw new TaskNotFoundException(e.Value.TaskId);
    338338        task.ExecutionTime = e.Value.ExecutionTime;
    339339        TaskData taskData = e.Value.GetTaskData();
    340         wcfService.UpdateJobData(task, taskData, configManager.GetClientInfo().Id, TaskState.Paused);
     340        wcfService.UpdateTaskData(task, taskData, configManager.GetClientInfo().Id, TaskState.Paused);
    341341      }
    342342      catch (TaskNotFoundException ex) {
     
    352352        SlaveStatusInfo.DecrementUsedCores(e.Value.CoresNeeded);
    353353        heartbeatManager.AwakeHeartBeatThread();
    354         Task task = wcfService.GetJob(e.Value.TaskId);
     354        Task task = wcfService.GetTask(e.Value.TaskId);
    355355        if (task == null) throw new TaskNotFoundException(e.Value.TaskId);
    356356        task.ExecutionTime = e.Value.ExecutionTime;
    357357        TaskData taskData = e.Value.GetTaskData();
    358         wcfService.UpdateJobData(task, taskData, configManager.GetClientInfo().Id, TaskState.Finished);
     358        wcfService.UpdateTaskData(task, taskData, configManager.GetClientInfo().Id, TaskState.Finished);
    359359      }
    360360      catch (TaskNotFoundException ex) {
     
    374374        Exception exception = e.Value.Item3;
    375375
    376         Task task = wcfService.GetJob(slaveTask.TaskId);
     376        Task task = wcfService.GetTask(slaveTask.TaskId);
    377377        if (task == null) throw new TaskNotFoundException(slaveTask.TaskId);
    378378        task.ExecutionTime = slaveTask.ExecutionTime;
    379379        if (taskData != null) {
    380           wcfService.UpdateJobData(task, taskData, configManager.GetClientInfo().Id, TaskState.Failed, exception.ToString());
     380          wcfService.UpdateTaskData(task, taskData, configManager.GetClientInfo().Id, TaskState.Failed, exception.ToString());
    381381        } else {
    382382          wcfService.UpdateJobState(task.Id, TaskState.Failed, exception.ToString());
Note: See TracChangeset for help on using the changeset viewer.