mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
fix naming Pull -> Request
This commit is contained in:
parent
d8f7a0e2e4
commit
6a5eeec86b
4 changed files with 8 additions and 8 deletions
|
@ -32,7 +32,7 @@ service Scheduler {
|
|||
// Request an object reference for an object that will be pushed to an object store
|
||||
rpc PushObj(PushObjRequest) returns (PushObjReply);
|
||||
// Request delivery of an object from an object store that holds the object to the local object store
|
||||
rpc PullObj(PullObjRequest) returns (AckReply); // TODO(pcm): rename to RequestObj and change documentation
|
||||
rpc RequestObj(RequestObjRequest) returns (AckReply);
|
||||
// Used by an object store to tell the scheduler that an object is ready (i.e. has been finalized and can be shared)
|
||||
rpc ObjReady(ObjReadyRequest) returns (AckReply);
|
||||
// Used by the worker to report back and ask for more work
|
||||
|
@ -75,9 +75,9 @@ message RemoteCallReply {
|
|||
repeated uint64 result = 1; // Object references of the function return values
|
||||
}
|
||||
|
||||
message PullObjRequest {
|
||||
uint64 workerid = 1; // Worker that tries to pull the object
|
||||
uint64 objref = 2; // Object reference of the object being pulled
|
||||
message RequestObjRequest {
|
||||
uint64 workerid = 1; // Worker that tries to request the object
|
||||
uint64 objref = 2; // Object reference of the object being requested
|
||||
}
|
||||
|
||||
message PushObjRequest {
|
||||
|
|
|
@ -38,7 +38,7 @@ Status SchedulerService::PushObj(ServerContext* context, const PushObjRequest* r
|
|||
return Status::OK;
|
||||
}
|
||||
|
||||
Status SchedulerService::PullObj(ServerContext* context, const PullObjRequest* request, AckReply* reply) {
|
||||
Status SchedulerService::RequestObj(ServerContext* context, const RequestObjRequest* request, AckReply* reply) {
|
||||
objtable_lock_.lock();
|
||||
size_t size = objtable_.size();
|
||||
objtable_lock_.unlock();
|
||||
|
|
|
@ -39,7 +39,7 @@ class SchedulerService : public Scheduler::Service {
|
|||
public:
|
||||
Status RemoteCall(ServerContext* context, const RemoteCallRequest* request, RemoteCallReply* reply) override;
|
||||
Status PushObj(ServerContext* context, const PushObjRequest* request, PushObjReply* reply) override;
|
||||
Status PullObj(ServerContext* context, const PullObjRequest* request, AckReply* reply) override;
|
||||
Status RequestObj(ServerContext* context, const RequestObjRequest* request, AckReply* reply) override;
|
||||
Status RegisterObjStore(ServerContext* context, const RegisterObjStoreRequest* request, RegisterObjStoreReply* reply) override;
|
||||
Status RegisterWorker(ServerContext* context, const RegisterWorkerRequest* request, RegisterWorkerReply* reply) override;
|
||||
Status RegisterFunction(ServerContext* context, const RegisterFunctionRequest* request, AckReply* reply) override;
|
||||
|
|
|
@ -37,12 +37,12 @@ void Worker::register_worker(const std::string& worker_address, const std::strin
|
|||
}
|
||||
|
||||
void Worker::request_object(ObjRef objref) {
|
||||
PullObjRequest request;
|
||||
RequestObjRequest request;
|
||||
request.set_workerid(workerid_);
|
||||
request.set_objref(objref);
|
||||
AckReply reply;
|
||||
ClientContext context;
|
||||
Status status = scheduler_stub_->PullObj(&context, request, &reply);
|
||||
Status status = scheduler_stub_->RequestObj(&context, request, &reply);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue