Skip to content

Commit

Permalink
lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkooo567 committed Dec 4, 2020
1 parent b7e34a1 commit 575c17c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion release/stress_tests/workloads/test_many_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
num_remote_cpus = num_remote_nodes * head_node_cpus

cluster = Cluster()
for _ in range(num_remote_cpus + 1):
for _ in range(num_remote_nodes + 1):
cluster.add_node(num_cpus=head_node_cpus, num_gpus=1)
ray.init(address=cluster.address)

Expand Down
24 changes: 12 additions & 12 deletions src/ray/raylet/node_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1720,18 +1720,18 @@ void NodeManager::HandleRequestWorkerLease(const rpc::RequestWorkerLeaseRequest
<< WorkerID::FromBinary(owner_address.worker_id());
leased_workers_[worker_id] = worker;
});
task.OnSpillbackInstead([this, reply, task_id, send_reply_callback](
const NodeID &spillback_to, const std::string &address,
int port) {
RAY_LOG(DEBUG) << "Worker lease request SPILLBACK " << task_id;
reply->mutable_retry_at_raylet_address()->set_ip_address(address);
reply->mutable_retry_at_raylet_address()->set_port(port);
reply->mutable_retry_at_raylet_address()->set_raylet_id(spillback_to.Binary());
metrics_num_task_spilled_back_ += 1;
RAY_LOG(INFO) << "X-RAY-TRACE message:'SPILLBACK.' from_node_id:" << self_node_id_
<< " to_node_id:" << spillback_to << " task_id:" << task_id;
send_reply_callback(Status::OK(), nullptr, nullptr);
});
task.OnSpillbackInstead(
[this, reply, task_id, send_reply_callback](const NodeID &spillback_to,
const std::string &address, int port) {
RAY_LOG(DEBUG) << "Worker lease request SPILLBACK " << task_id;
reply->mutable_retry_at_raylet_address()->set_ip_address(address);
reply->mutable_retry_at_raylet_address()->set_port(port);
reply->mutable_retry_at_raylet_address()->set_raylet_id(spillback_to.Binary());
metrics_num_task_spilled_back_ += 1;
RAY_LOG(INFO) << "X-RAY-TRACE message:'SPILLBACK.' from_node_id:" << self_node_id_
<< " to_node_id:" << spillback_to << " task_id:" << task_id;
send_reply_callback(Status::OK(), nullptr, nullptr);
});
task.OnCancellationInstead([reply, task_id, send_reply_callback]() {
RAY_LOG(DEBUG) << "Task lease request canceled " << task_id;
reply->set_canceled(true);
Expand Down

0 comments on commit 575c17c

Please sign in to comment.