Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/13 14:25:49 (11 years ago)
Author:
ascheibe
Message:

#2019 disable lazy loading in some methods to avoid deadlocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive/3.3/Convert.cs

    r9123 r9266  
    7979      }
    8080    }
     81
     82    public static void ToEntityTaskOnly(DT.Task source, DB.Task target) {
     83      if ((source != null) && (target != null)) {
     84        target.TaskId = source.Id;
     85        target.CoresNeeded = source.CoresNeeded;
     86        target.ExecutionTimeMs = source.ExecutionTime.TotalMilliseconds;
     87        target.MemoryNeeded = source.MemoryNeeded;
     88        target.ParentTaskId = source.ParentTaskId;
     89        target.Priority = source.Priority;
     90        target.LastHeartbeat = source.LastHeartbeat;
     91        target.State = Convert.ToEntity(source.State);
     92        target.IsParentTask = source.IsParentTask;
     93        target.FinishWhenChildJobsFinished = source.FinishWhenChildJobsFinished;
     94        target.Command = Convert.ToEntity(source.Command);
     95        // RequiredPlugins are added by Dao
     96        target.JobId = source.JobId;
     97        target.IsPrivileged = source.IsPrivileged;
     98      }
     99    }
    81100    #endregion
    82101
Note: See TracChangeset for help on using the changeset viewer.