mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 19:29:16 +08:00
Enable memstore by default (#6003)
This commit is contained in:
@@ -84,8 +84,7 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
|
||||
const c_vector[CObjectID] &arg_reference_ids,
|
||||
const c_vector[CObjectID] &return_ids,
|
||||
c_vector[shared_ptr[CRayObject]] *returns) nogil,
|
||||
CRayStatus() nogil,
|
||||
c_bool use_memory_store_)
|
||||
CRayStatus() nogil)
|
||||
void Disconnect()
|
||||
CWorkerType &GetWorkerType()
|
||||
CLanguage &GetLanguage()
|
||||
|
||||
@@ -4,9 +4,6 @@ from libc.stdint cimport uint8_t, uint32_t, int64_t
|
||||
|
||||
cdef extern from "ray/common/id.h" namespace "ray" nogil:
|
||||
cdef cppclass CBaseID[T]:
|
||||
@staticmethod
|
||||
T from_random()
|
||||
|
||||
@staticmethod
|
||||
T FromBinary(const c_string &binary)
|
||||
|
||||
@@ -32,7 +29,7 @@ cdef extern from "ray/common/id.h" namespace "ray" nogil:
|
||||
size_t Size()
|
||||
|
||||
@staticmethod
|
||||
CUniqueID from_random()
|
||||
CUniqueID FromRandom()
|
||||
|
||||
@staticmethod
|
||||
CUniqueID FromBinary(const c_string &binary)
|
||||
@@ -133,6 +130,9 @@ cdef extern from "ray/common/id.h" namespace "ray" nogil:
|
||||
@staticmethod
|
||||
CObjectID FromBinary(const c_string &binary)
|
||||
|
||||
@staticmethod
|
||||
CObjectID FromRandom()
|
||||
|
||||
@staticmethod
|
||||
const CObjectID Nil()
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ cdef class UniqueID(BaseID):
|
||||
|
||||
@classmethod
|
||||
def from_random(cls):
|
||||
return cls(os.urandom(CUniqueID.Size()))
|
||||
return cls(CUniqueID.FromRandom().Binary())
|
||||
|
||||
def size(self):
|
||||
return CUniqueID.Size()
|
||||
@@ -197,7 +197,7 @@ cdef class ObjectID(BaseID):
|
||||
|
||||
@classmethod
|
||||
def from_random(cls):
|
||||
return cls(os.urandom(CObjectID.Size()))
|
||||
return cls(CObjectID.FromRandom().Binary())
|
||||
|
||||
|
||||
cdef class TaskID(BaseID):
|
||||
|
||||
Reference in New Issue
Block a user