mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 15:17:56 +08:00
Replenish workers for disconnected actors (#2307)
This commit is contained in:
committed by
Richard Liaw
parent
f0ed1c1674
commit
bb1d7eaece
@@ -1528,6 +1528,10 @@ void handle_actor_worker_disconnect(LocalSchedulerState *state,
|
||||
|
||||
/* Attempt to dispatch some tasks because some resources may have freed up. */
|
||||
dispatch_all_tasks(state, algorithm_state);
|
||||
|
||||
/* Start a worker to replace the removed actor's worker and replenish the
|
||||
* worker pool. */
|
||||
start_worker(state);
|
||||
}
|
||||
|
||||
/* NOTE(swang): For tasks that saved a checkpoint, we should consider
|
||||
|
||||
Reference in New Issue
Block a user