Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/18/11 18:34:55 (12 years ago)
Author:
ascheibe
Message:

#1672

  • increased max. object graph size which can be serialized to allow downloading of big jobs
  • removed more magic numbers
  • increased job polling interval
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs

    r6994 r7020  
    194194      this.Job = new Job();
    195195      this.log = new ThreadSafeLog();
    196       this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(2, 2);
     196      this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(Settings.Default.MaxParallelDownloads, Settings.Default.MaxParallelDownloads);
    197197      this.jobDownloader.ExceptionOccured += new EventHandler<EventArgs<Exception>>(jobDownloader_ExceptionOccured);
    198198      this.HiveTasks = new ItemCollection<HiveTask>();
     
    202202      this.Job = hiveExperiment;
    203203      this.log = new ThreadSafeLog();
    204       this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(2, 2);
     204      this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(Settings.Default.MaxParallelDownloads, Settings.Default.MaxParallelDownloads);
    205205      this.jobDownloader.ExceptionOccured += new EventHandler<EventArgs<Exception>>(jobDownloader_ExceptionOccured);
    206206      this.HiveTasks = new ItemCollection<HiveTask>();
     
    212212      this.log = cloner.Clone(original.log);
    213213      this.RefreshAutomatically = false; // do not start results polling automatically
    214       this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(2, 2);
     214      this.jobDownloader = new ConcurrentTaskDownloader<ItemTask>(Settings.Default.MaxParallelDownloads, Settings.Default.MaxParallelDownloads);
    215215      this.jobDownloader.ExceptionOccured += new EventHandler<EventArgs<Exception>>(jobDownloader_ExceptionOccured);
    216216      this.HiveTasks = cloner.Clone(original.HiveTasks);
     
    230230    public void StartResultPolling() {
    231231      if (jobResultPoller == null) {
    232         jobResultPoller = new JobResultPoller(job.Id, /*ApplicationConstants.ResultPollingInterval*/new TimeSpan(0, 0, 5)); //TODO: find a better place for ApplicationConstants
     232        jobResultPoller = new JobResultPoller(job.Id, Settings.Default.ResultPollingInterval);
    233233        RegisterResultPollingEvents();
    234234        jobResultPoller.AutoResumeOnException = true;
Note: See TracChangeset for help on using the changeset viewer.