[Core] Expand job ID to 4 bytes by removing object flag bytes. (#10187)

This commit is contained in:
Clark Zinzow
2020-08-27 13:08:17 -06:00
committed by GitHub
parent f846b26165
commit 0178d6318e
19 changed files with 118 additions and 247 deletions
+1 -5
View File
@@ -139,11 +139,7 @@ cdef extern from "ray/common/id.h" namespace "ray" nogil:
const CObjectID Nil()
@staticmethod
CObjectID ForPut(const CTaskID &task_id, int64_t index,
int64_t transport_type)
@staticmethod
CObjectID ForTaskReturn(const CTaskID &task_id, int64_t index)
CObjectID FromIndex(const CTaskID &task_id, int64_t index)
@staticmethod
size_t Size()
+1 -1
View File
@@ -221,7 +221,7 @@ cdef class JobID(BaseID):
@classmethod
def from_int(cls, value):
assert value < 65536, "Maximum JobID integer is 65535."
assert value < 2**32, "Maximum JobID integer is 2**32 - 1."
return cls(CJobID.FromInt(value).Binary())
@classmethod