[ID Refactor] Rename DriverID to JobID (#5004)

* WIP

WIP

WIP

Rename Driver -> Job

Fix complition

Fix

Rename in Java

In py

WIP

Fix

WIP

Fix

Fix test

Fix

Fix C++ linting

Fix

* Update java/runtime/src/main/java/org/ray/runtime/config/RayConfig.java

Co-Authored-By: Stephanie Wang <swang@cs.berkeley.edu>

* Update src/ray/core_worker/core_worker.cc

Co-Authored-By: Stephanie Wang <swang@cs.berkeley.edu>

* Address comments

* Fix

* Fix CI

* Fix cpp linting

* Fix py lint

* FIx

* Address comments and fix

* Address comments

* Address

* Fix import_threading
This commit is contained in:
Qing Wang
2019-06-28 00:44:51 +08:00
committed by GitHub
parent d9768c1cd2
commit 62e4b591e3
79 changed files with 961 additions and 974 deletions
+15 -6
View File
@@ -15,7 +15,7 @@ from ray.includes.unique_ids cimport (
CActorID,
CClientID,
CConfigID,
CDriverID,
CJobID,
CFunctionID,
CObjectID,
CTaskID,
@@ -212,15 +212,23 @@ cdef class ClientID(UniqueID):
return <CClientID>self.data
cdef class DriverID(UniqueID):
cdef class JobID(UniqueID):
def __init__(self, id):
check_id(id)
self.data = CDriverID.FromBinary(<c_string>id)
self.data = CJobID.FromBinary(<c_string>id)
cdef CDriverID native(self):
return <CDriverID>self.data
cdef CJobID native(self):
return <CJobID>self.data
cdef class WorkerID(UniqueID):
def __init__(self, id):
check_id(id)
self.data = CWorkerID.FromBinary(<c_string>id)
cdef CWorkerID native(self):
return <CWorkerID>self.data
cdef class ActorID(UniqueID):
@@ -277,7 +285,8 @@ _ID_TYPES = [
ActorHandleID,
ActorID,
ClientID,
DriverID,
JobID,
WorkerID,
FunctionID,
ObjectID,
TaskID,