Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15350 for trunk


Ignore:
Timestamp:
09/06/17 11:13:46 (7 years ago)
Author:
bburlacu
Message:

#2829: JobTaskOneFileDownloader: Check for exception and add sleep timeout in log update loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/HeuristicLab.HiveDrain/HeuristicLab.HiveDrain/JobTaskOneFileDownloader.cs

    r15347 r15350  
    7676        downloader.StartAsync();
    7777
    78         while (!downloader.IsFinished) {
     78        while (!downloader.IsFinished || finishedCount < totalJobCount) {
    7979          if (finishedCount != downloader.FinishedCount) {
    8080            finishedCount = downloader.FinishedCount;
    8181            log.LogMessage(string.Format("Downloading/deserializing tasks... ({0}/{1} finished)", finishedCount, totalJobCount));
     82          }
     83
     84          Thread.Sleep(500);
     85
     86          if (downloader.IsFaulted) {
     87            throw downloader.Exception;
    8288          }
    8389        }
Note: See TracChangeset for help on using the changeset viewer.