mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 22:23:13 +08:00
Task and actor fate sharing with the owner process (#6818)
* Add test * Kill workers leased by failed workers * merge * shorten test * Add node failure test case * Fix FromBinary for nil IDs, add assertions * Test * Fate sharing on node removal, fix owner address bug * lint * Update src/ray/raylet/node_manager.cc Co-Authored-By: Zhijun Fu <37800433+zhijunfu@users.noreply.github.com> * fix * Remove unneeded test * fix IDs Co-authored-by: Zhijun Fu <37800433+zhijunfu@users.noreply.github.com>
This commit is contained in:
@@ -149,10 +149,11 @@ def wait_for_condition(condition_predictor,
|
||||
Whether the condition is met within the timeout.
|
||||
"""
|
||||
time_elapsed = 0
|
||||
start = time.time()
|
||||
while time_elapsed <= timeout_ms:
|
||||
if condition_predictor():
|
||||
return True
|
||||
time_elapsed += retry_interval_ms
|
||||
time_elapsed = (time.time() - start) * 1000
|
||||
time.sleep(retry_interval_ms / 1000.0)
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user