Updates to scheduling objects to support dynamic custom resources (#4465)

This commit is contained in:
Romil Bhardwaj
2019-04-27 18:45:23 -07:00
committed by Robert Nishihara
parent 9ce3039390
commit 686d4caefe
3 changed files with 338 additions and 24 deletions
+1 -2
View File
@@ -119,9 +119,8 @@ cdef extern from "ray/raylet/scheduling_resources.h" \
c_bool IsEqual(const ResourceSet &other) const
c_bool IsSubset(const ResourceSet &other) const
c_bool IsSuperset(const ResourceSet &other) const
c_bool AddResource(const c_string &resource_name, double capacity)
c_bool AddOrUpdateResource(const c_string &resource_name, double capacity)
c_bool RemoveResource(const c_string &resource_name)
c_bool AddResourcesStrict(const ResourceSet &other)
void AddResources(const ResourceSet &other)
c_bool SubtractResourcesStrict(const ResourceSet &other)
c_bool GetResource(const c_string &resource_name, double *value) const