Adds Static AlgorithmCreationTimeout Property to BaseSetupHandler (#5316)

* Adds Static AlgorithmCreationTimeout Property to BaseSetupHandler

This value will be used to set maximum time that the creation of an algorithm can take.

* Adds Additional Logging to AlgorithmPythonWrapper

It will informing the user how long it takes to import the module.

* Changes How AlgorithmCreationTimeout is Initialized

It will prevent callling Config.GetDouble on every call.
This commit is contained in:
Alexandre Catarino
2021-02-18 22:00:33 +00:00
committed by GitHub
parent 4632840da9
commit c5bb840bde
5 changed files with 12 additions and 3 deletions
@@ -67,6 +67,9 @@ namespace QuantConnect.AlgorithmFactory.Python.Wrappers
Logging.Log.Trace($"AlgorithmPythonWrapper(): Python version {PythonEngine.Version}: Importing python module {moduleName}");
var module = Py.Import(moduleName);
Logging.Log.Trace($"AlgorithmPythonWrapper(): {moduleName} successfully imported.");
var pyList = module.Dir();
foreach (var name in pyList)
{