mirror of
https://github.com/wassname/ray.git
synced 2026-07-21 12:50:45 +08:00
[core] Refactor task arguments and attach owner address (#9152)
* Add intended worker ID to GetObjectStatus, tests
* Remove TaskID owner_id
* lint
* Add owner address to task args
* Make TaskArg a virtual class, remove multi args
* Set owner address for task args
* merge
* Fix tests
* Fix
* build
* update
* build
* java
* Move code
* build
* Revert "Fix Google log directory again (#9063)"
This reverts commit 275da2e400.
* Fix free
* x
* build
* Fix java
* Revert "Revert "Fix Google log directory again (#9063)""
This reverts commit 4a326fcb148ca09a35bc7de11d89df10edbb56e7.
* lint
This commit is contained in:
@@ -50,7 +50,9 @@ ObjectID LocalModeTaskSubmitter::Submit(const InvocationSpec &invocation, TaskTy
|
||||
reinterpret_cast<uint8_t *>(invocation.args->data()), invocation.args->size(),
|
||||
true);
|
||||
/// TODO(Guyang Song): Use both 'AddByRefArg' and 'AddByValueArg' to distinguish
|
||||
builder.AddByValueArg(::ray::RayObject(buffer, nullptr, std::vector<ObjectID>()));
|
||||
auto arg = TaskArgByValue(
|
||||
std::make_shared<::ray::RayObject>(buffer, nullptr, std::vector<ObjectID>()));
|
||||
builder.AddArg(arg);
|
||||
auto task_specification = builder.Build();
|
||||
ObjectID return_object_id = task_specification.ReturnId(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user