Changeset 1928
- Timestamp:
- 05/28/09 15:48:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs
r1831 r1928 285 285 /// <param name="response"></param> 286 286 private void processJobProcess(HeartBeatData hbData, IJobAdapter jobAdapter, IClientAdapter clientAdapter, ResponseHB response) { 287 if (hbData.JobProgress != null ) {287 if (hbData.JobProgress != null && hbData.JobProgress.Count > 0) { 288 288 List<Job> jobsOfClient = new List<Job>(jobAdapter.GetActiveJobsOf(clientAdapter.GetById(hbData.ClientId))); 289 289 if (jobsOfClient == null || jobsOfClient.Count == 0) { … … 537 537 return response; 538 538 } 539 List<Job> allJobs = new List<Job>(jobAdapter.GetAll());540 539 if (client.State == State.calculating) { 541 540 // check wich job the client was calculating and reset it 542 foreach (Job job in allJobs) { 543 if (job.Client != null) { 544 if (job.Client.Id == client.Id) { 545 jobManager.ResetJobsDependingOnResults(job); 546 } 547 } 541 ICollection<Job> jobsOfClient = jobAdapter.GetJobsOf(client); 542 foreach (Job job in jobsOfClient) { 543 if (job.State != State.finished) 544 jobManager.ResetJobsDependingOnResults(job); 548 545 } 549 546 }
Note: See TracChangeset
for help on using the changeset viewer.