Fix fate-sharing warning (#7545)

* Fix kernel_fate_sharing being None instead of False

* Remove fate-sharing warning

Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
mehrdadn
2020-03-11 08:27:54 -07:00
committed by GitHub
parent fbac256982
commit 3b9caa98ba
2 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ class Node:
self._register_shutdown_hooks()
self.head = head
self.kernel_fate_share = (spawn_reaper
and ray.utils.detect_fate_sharing_support())
self.kernel_fate_share = bool(
spawn_reaper and ray.utils.detect_fate_sharing_support())
self.all_processes = {}
# Try to get node IP address with the parameters.