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:
committed by
GitHub
parent
4632840da9
commit
c5bb840bde
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user