Changeset 977
- Timestamp:
- 12/11/08 17:26:00 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs
r970 r977 24 24 clientAdapter = ServiceLocator.GetClientAdapter(); 25 25 jobAdapter = ServiceLocator.GetJobAdapter(); 26 27 for (int i = 0; i < 10; i++) { 28 Job job = new Job(); 29 job.JobId = i; 30 job.State = State.offline; 31 jobAdapter.UpdateJob(job); 32 } 26 33 27 34 } … … 57 64 response.ActionRequest = new List<MessageContainer>(); 58 65 List<Job> allJobs = new List<Job>(jobAdapter.GetAllJobs()); 59 if (allJobs.Count > 0 )66 if (allJobs.Count > 0 && hbData.freeCores > 0) 60 67 response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.FetchJob)); 61 68 else -
trunk/sources/HeuristicLab.Hive.Server/HiveServerApplication.cs
r948 r977 149 149 //sync with db every 5 minutes 150 150 lifecycleManager.GetTransactionManager().EnableAutoUpdate( 151 new TimeSpan(0, 5,0));151 new TimeSpan(0, 0, 10)); 152 152 153 153 Form mainForm = new MainForm(clientCommunicator.BaseAddresses[0],
Note: See TracChangeset
for help on using the changeset viewer.