Changeset 1166 for trunk/sources/HeuristicLab.Hive.Server.Core
- Timestamp:
- 01/22/09 00:30:46 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs
r1160 r1166 88 88 client.State = State.offline; 89 89 clientAdapter.Update(client); 90 foreach (Job job in jobAdapter.Get JobsOf(client)) {90 foreach (Job job in jobAdapter.GetActiveJobsOf(client)) { 91 91 jobManager.ResetJobsDependingOnResults(job); 92 92 } … … 100 100 if (client.State == State.calculating) { 101 101 // check wich job the client was calculating and reset it 102 foreach (Job job in jobAdapter.Get JobsOf(client)) {102 foreach (Job job in jobAdapter.GetActiveJobsOf(client)) { 103 103 jobManager.ResetJobsDependingOnResults(job); 104 104 } … … 195 195 196 196 if (hbData.jobProgress != null) { 197 List<Job> jobsOfClient = new List<Job>(jobAdapter.Get JobsOf(clientAdapter.GetById(hbData.ClientId)));197 List<Job> jobsOfClient = new List<Job>(jobAdapter.GetActiveJobsOf(clientAdapter.GetById(hbData.ClientId))); 198 198 if (jobsOfClient == null || jobsOfClient.Count == 0) { 199 199 response.Success = false; -
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IJobAdapter.cs
r1000 r1166 48 48 49 49 /// <summary> 50 /// Gets all active jobs of the client 51 /// </summary> 52 /// <param name="client"></param> 53 /// <returns></returns> 54 ICollection<Job> GetActiveJobsOf(ClientInfo client); 55 56 /// <summary> 50 57 /// Gets all jobs of the user 51 58 /// </summary>
Note: See TracChangeset
for help on using the changeset viewer.