mirror of
https://github.com/vale981/ray
synced 2025-03-09 04:46:38 -04:00
properly handle a forwarded task that gets forwarded back (#6271)
This commit is contained in:
parent
fa98694dd0
commit
7611e484ec
1 changed files with 6 additions and 0 deletions
|
@ -2814,6 +2814,12 @@ void NodeManager::ForwardTask(
|
|||
|
||||
client->ForwardTask(request, [this, on_error, task, task_id, node_id](
|
||||
Status status, const rpc::ForwardTaskReply &reply) {
|
||||
if (local_queues_.HasTask(task_id)) {
|
||||
// It must have been forwarded back to us if it's in the queue again
|
||||
// so just return here.
|
||||
return;
|
||||
}
|
||||
|
||||
if (status.ok()) {
|
||||
const auto &spec = task.GetTaskSpecification();
|
||||
// Mark as forwarded so that the task and its lineage are not
|
||||
|
|
Loading…
Add table
Reference in a new issue