Changeset 12866
- Timestamp:
- 08/17/15 15:14:04 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 4 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveJanitor.cs
r12858 r12866 65 65 var lifecycle = lifecycleDao.GetLastLifecycle(); 66 66 if (lifecycle == null 67 || DateTime.Now - lifecycle.LastCleanup > HeuristicLab.Services.Hive.Properties.Settings.Default.CleanupInterval) {67 || DateTime.Now - lifecycle.LastCleanup > Properties.Settings.Default.CleanupInterval) { 68 68 lifecycleDao.UpdateLifecycle(); 69 69 cleanup = true; … … 80 80 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log(string.Format("HiveJanitor: The following exception occured: {0}", e.ToString())); 81 81 } 82 cleanupWaitHandle.WaitOne( HeuristicLab.Services.Hive.Properties.Settings.Default.CleanupInterval);82 cleanupWaitHandle.WaitOne(Properties.Settings.Default.CleanupInterval); 83 83 } 84 84 cleanupWaitHandle.Close(); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveStatisticsGenerator.cs
r12776 r12866 265 265 var taskDao = pm.TaskDao; 266 266 var dimClientDao = pm.DimClientDao; 267 var stateLogDao = pm.StateLogDao;268 267 269 268 var factTaskIds = factTaskDao.GetAll().Select(x => x.TaskId); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Manager/EventManager.cs
r12861 r12866 34 34 public void Cleanup() { 35 35 var pm = PersistenceManager; 36 // same transactions as the old EventManager37 36 pm.UseTransaction(() => { 38 37 SetTimeoutSlavesOffline(pm); … … 57 56 if (!slave.LastHeartbeat.HasValue || 58 57 (DateTime.Now - slave.LastHeartbeat.Value) > 59 HeuristicLab.Services.Hive.Properties.Settings.Default.SlaveHeartbeatTimeout) {58 Properties.Settings.Default.SlaveHeartbeatTimeout) { 60 59 slave.SlaveState = SlaveState.Offline; 61 60 } … … 88 87 private void SetTimeoutTasksWaiting(IPersistenceManager pm) { 89 88 var taskDao = pm.TaskDao; 90 var tasks = taskDao.GetAll().Where(x => (x.State == TaskState.Calculating && (DateTime.Now - x.LastHeartbeat) > HeuristicLab.Services.Hive.Properties.Settings.Default.CalculatingJobHeartbeatTimeout)91 || (x.State == TaskState.Transferring && (DateTime.Now - x.LastHeartbeat) > HeuristicLab.Services.Hive.Properties.Settings.Default.TransferringJobHeartbeatTimeout));89 var tasks = taskDao.GetAll().Where(x => (x.State == TaskState.Calculating && (DateTime.Now - x.LastHeartbeat) > Properties.Settings.Default.CalculatingJobHeartbeatTimeout) 90 || (x.State == TaskState.Transferring && (DateTime.Now - x.LastHeartbeat) > Properties.Settings.Default.TransferringJobHeartbeatTimeout)); 92 91 foreach (var task in tasks) { 93 92 task.State = TaskState.Waiting; … … 112 111 .Where(x => x.IsDisposable.GetValueOrDefault() 113 112 && x.SlaveState == SlaveState.Offline 114 && (DateTime.Now - x.LastHeartbeat) > Hive.Properties.Settings.Default.SweepInterval)113 && (DateTime.Now - x.LastHeartbeat) > Properties.Settings.Default.SweepInterval) 115 114 .Select(x => x.ResourceId) 116 115 .ToList(); -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/Properties/AssemblyInfo.cs.frame
r12775 r12866 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.3.0.0")] 57 [assembly: AssemblyFileVersion("3.3.1 1.$WCREV$")]57 [assembly: AssemblyFileVersion("3.3.12.$WCREV$")] -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3
- Property svn:ignore
-
old new 1 HeuristicLab.Services.WebApp.Statistics-3.3.csproj.user 1 2 bin
-
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/Properties/AssemblyInfo.cs.frame
r12776 r12866 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.3.0.0")] 57 [assembly: AssemblyFileVersion("3.3.1 1.$WCREV$")]57 [assembly: AssemblyFileVersion("3.3.12.$WCREV$")] -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/3.3
- Property svn:ignore
-
old new 1 1 Bin 2 HeuristicLab.Services.WebApp-3.3.csproj.user
-
- Property svn:ignore
Note: See TracChangeset
for help on using the changeset viewer.