- Timestamp:
- 01/07/13 22:00:04 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive
-
Property
svn:mergeinfo
set to
/branches/HiveTaskScheduler/HeuristicLab.Services.Hive merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r9035 r9123 142 142 author.AuthorizeForTask(taskDto.Id, Permission.Full); 143 143 trans.UseTransaction(() => { 144 dao.UpdateTask (taskDto);144 dao.UpdateTaskAndPlugins(taskDto); 145 145 }); 146 146 } … … 152 152 //trans.UseTransaction(() => { // cneumuel: try without transaction 153 153 taskData.LastUpdate = DateTime.Now; 154 dao.UpdateTask (task);154 dao.UpdateTaskAndPlugins(task); 155 155 dao.UpdateTaskData(taskData); 156 156 //}, false, true); … … 194 194 } 195 195 196 dao.UpdateTask (task);196 dao.UpdateTaskAndPlugins(task); 197 197 return task; 198 198 }); … … 499 499 #endregion 500 500 501 #region Resource Methods 502 public IEnumerable<Resource> GetChildResources(Guid resourceId) { 503 return dao.GetChildResources(resourceId); 504 } 505 #endregion 506 501 507 #region Slave Methods 502 508 public int GetNewHeartbeatInterval(Guid slaveId) { … … 671 677 #endregion 672 678 679 #region UserPriority Methods 680 public IEnumerable<UserPriority> GetUserPriorities() { 681 return trans.UseTransaction(() => dao.GetUserPriorities(x => true)); 682 } 683 #endregion 684 673 685 #region Helper Methods 674 686 private IEnumerable<Task> GetChildTasks(Guid? parentTaskId, bool recursive, bool includeParent) { … … 687 699 } 688 700 #endregion 701 702 #region Statistics Methods 703 public IEnumerable<Statistics> GetStatistics() { 704 return dao.GetStatistics(x => true); 705 } 706 public IEnumerable<Statistics> GetStatisticsForTimePeriod(DateTime from, DateTime to) { 707 return dao.GetStatistics(x => x.Timestamp >= from && x.Timestamp <= to); 708 } 709 #endregion 689 710 } 690 711 }
Note: See TracChangeset
for help on using the changeset viewer.