mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 03:21:06 +08:00
Fix shutdown hook in worker mode (#8098)
This commit is contained in:
@@ -102,12 +102,14 @@ public final class RayNativeRuntime extends AbstractRayRuntime {
|
||||
|
||||
@Override
|
||||
public void shutdown() {
|
||||
nativeShutdown();
|
||||
if (null != manager) {
|
||||
manager.cleanup();
|
||||
manager = null;
|
||||
if (rayConfig.workerMode == WorkerType.DRIVER) {
|
||||
nativeShutdown();
|
||||
if (null != manager) {
|
||||
manager.cleanup();
|
||||
manager = null;
|
||||
}
|
||||
RayConfig.reset();
|
||||
}
|
||||
RayConfig.reset();
|
||||
LOGGER.info("RayNativeRuntime shutdown");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user