Compare commits

...

1 Commits
16632 ... 12281

Author SHA1 Message Date
Martin-Molinero
1c663ffa18 Fix permission manager null reference 2021-07-10 11:56:43 -03:00

View File

@@ -115,6 +115,9 @@ namespace QuantConnect.Lean.Engine
AlgorithmHandlers.Setup.WorkerThread = workerThread;
// initialize the data permission manager
AlgorithmHandlers.DataPermissionsManager.Initialize(job);
// Save algorithm to cache, load algorithm instance:
algorithm = AlgorithmHandlers.Setup.CreateAlgorithmInstance(job, assemblyPath);
@@ -127,9 +130,6 @@ namespace QuantConnect.Lean.Engine
// initialize the object store
AlgorithmHandlers.ObjectStore.Initialize(algorithm.Name, job.UserId, job.ProjectId, job.UserToken, job.Controls);
// initialize the data permission manager
AlgorithmHandlers.DataPermissionsManager.Initialize(job);
// notify the user of any errors w/ object store persistence
AlgorithmHandlers.ObjectStore.ErrorRaised += (sender, args) => algorithm.Debug($"ObjectStore Persistence Error: {args.Error.Message}");