mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[Core] Try scheduling tasks when the local resource creation is updated (#20019)
## Why are these changes needed? Check https://github.com/ray-project/ray/pull/19996/files#r741963616 ## Related issue number
This commit is contained in:
parent
f4256a4ddc
commit
eacaff5d8d
1 changed files with 1 additions and 0 deletions
|
@ -897,6 +897,7 @@ void NodeManager::ResourceCreateUpdated(const NodeID &node_id,
|
|||
// Updating local node could result in a inconsistence view in cluster resource
|
||||
// scheduler which could make task hang.
|
||||
if (node_id == self_node_id_) {
|
||||
cluster_task_manager_->ScheduleAndDispatchTasks();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue