diff --git a/src/modules/Elsa.Python/HostedServices/PythonGlobalInterpreterManager.cs b/src/modules/Elsa.Python/HostedServices/PythonGlobalInterpreterManager.cs index 4b75d927f..084d1ebe7 100644 --- a/src/modules/Elsa.Python/HostedServices/PythonGlobalInterpreterManager.cs +++ b/src/modules/Elsa.Python/HostedServices/PythonGlobalInterpreterManager.cs @@ -44,13 +44,5 @@ public class PythonGlobalInterpreterManager : IHostedService } /// - public Task StopAsync(CancellationToken cancellationToken) - { - if(_mainThreadState != IntPtr.Zero) - { - PythonEngine.EndAllowThreads(_mainThreadState); - PythonEngine.Shutdown(); - } - return Task.CompletedTask; - } + public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask; } \ No newline at end of file