Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/09/11 14:12:10 (13 years ago)
Author:
cneumuel
Message:

#1233

  • removed Job-dto objects from slave core (since it stores outdated objects)
  • added command textbox to HiveJobView
  • improved the way the control buttons behave in HiveJobView
  • improved job control (pause and stop is also possible when job is not currently calculating)
  • improved gantt chart view (last state log entry is also displayed)
  • unified code for downloading jobs between experiment manager and hive engine
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/ExperimentManager/JobDownloader.cs

    r6111 r6168  
    2020    }
    2121
    22     public void DownloadJob(Guid jobId, Action<T> onFinishedAction) {
     22    public void DownloadJob(Guid jobId, Action<Guid, T, Exception> onFinishedAction) {
    2323      Task<JobData>.Factory.StartNew((x) => DownloadJob(x), jobId)
    2424                                     .ContinueWith((x) => DeserializeJob(x.Result))
    25                                      .ContinueWith((x) => OnJobFinished(x.Result, onFinishedAction), TaskContinuationOptions.ExecuteSynchronously);
     25                                     .ContinueWith((x) => OnJobFinished(jobId, x, onFinishedAction), TaskContinuationOptions.ExecuteSynchronously);
    2626    }
    2727
    28     private T OnJobFinished(T job, Action<T> onFinishedAction) {
    29       onFinishedAction(job);
    30       return job;
     28    private void OnJobFinished(Guid jobId, Task<T> task, Action<Guid, T, Exception> onFinishedAction) {
     29      onFinishedAction(jobId, task.Result, task.Exception);
    3130    }
    3231
Note: See TracChangeset for help on using the changeset viewer.