You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating a process and calling process.create_runtime, that process will leak (i.e. leave open) channels and SystemProcesses on deletion if its run method is never called. If there is an exception or other problem during initialization, this could lead to inappropriate retention of system resources.
To reproduce current behavior
Create a process, call process.create_runtime(), call process.stop() or delete the process to trigger release of resources. Note that the spawned actors will not be joined and the channels will not be closed.
Expected behavior
Process.stop and runtime.stop should work correctly regardless of whether a process has ever been run. These methods should not rely on flags (_is_running, _is_initialized, etc) which are potentially incorrect to decide whether to clean up system resources, and should execute an exception-safe, comprehensive shutdown process whenever being deleted or stopped by the user.
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a process and calling process.create_runtime, that process will leak (i.e. leave open) channels and SystemProcesses on deletion if its run method is never called. If there is an exception or other problem during initialization, this could lead to inappropriate retention of system resources.
To reproduce current behavior
Create a process, call process.create_runtime(), call process.stop() or delete the process to trigger release of resources. Note that the spawned actors will not be joined and the channels will not be closed.
Expected behavior
Process.stop and runtime.stop should work correctly regardless of whether a process has ever been run. These methods should not rely on flags (_is_running, _is_initialized, etc) which are potentially incorrect to decide whether to clean up system resources, and should execute an exception-safe, comprehensive shutdown process whenever being deleted or stopped by the user.
The text was updated successfully, but these errors were encountered: