Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1630


Ignore:
Timestamp:
04/23/09 16:25:05 (16 years ago)
Author:
msteinbi
Message:

added checks if a client really calculates the jobs, like stored in database (#531)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs

    r1596 r1630  
    305305          }
    306306        }
     307        foreach (Job currJob in jobsOfClient) {
     308          bool found = false;
     309          foreach (Guid jobId in hbData.JobProgress.Keys) {
     310            if (jobId == currJob.Id) {
     311              found = true;
     312              break;
     313            }
     314          }
     315          if (!found) {
     316            currJob.State = State.offline;
     317            jobAdapter.Update(currJob);
     318          }
     319        }
    307320      }
    308321    }
Note: See TracChangeset for help on using the changeset viewer.