Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8869


Ignore:
Timestamp:
11/05/12 14:54:10 (12 years ago)
Author:
ascheibe
Message:

#1950 fixed multiple EndpointNotFoundExceptions in the HiveJobManager

Location:
trunk/sources/HeuristicLab.Clients.Hive/3.3
Files:
2 edited

Legend:

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

    r7259 r8869  
    8282
    8383    private void RunPolling() {
     84      IsPolling = true;
    8485      while (true) {
    85         IsPolling = true;
    8686        try {
    8787          waitHandle = new AutoResetEvent(false);
     
    9292            waitHandle.WaitOne(Interval);
    9393          }
    94           waitHandle.Close();
     94
     95          if (stopRequested) {
     96            waitHandle.Close();
     97            IsPolling = false;
     98            return;
     99          }
    95100        }
    96101        catch (Exception e) {
    97102          OnExceptionOccured(e);
    98         } finally {
    99           IsPolling = false;
     103          if (!autoResumeOnException) {
     104            waitHandle.Close();
     105            IsPolling = false;
     106            return;
     107          }
    100108        }
    101         if (stopRequested) return;
    102         if (!autoResumeOnException) return;
    103109      }
    104110    }
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs

    r8165 r8869  
    228228        jobResultPoller = new JobResultPoller(job.Id, Settings.Default.ResultPollingInterval);
    229229        RegisterResultPollingEvents();
    230         jobResultPoller.AutoResumeOnException = true;
     230        jobResultPoller.AutoResumeOnException = false;
    231231      }
    232232
Note: See TracChangeset for help on using the changeset viewer.