Documentation ¶
Index ¶
- Variables
- func CheckIfRuntimeInNode(node corev1.Node, runtimeInfo base.RuntimeInfoInterface) (found bool)
- func DecreaseDatasetNum(toUpdate *corev1.Node, runtimeInfo base.RuntimeInfoInterface, ...) error
- func SyncScheduleInfoToCacheNodes(runtimeInfo base.RuntimeInfoInterface, client client.Client) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SchedulerMutex = sync.Mutex{}
TODO: move this to some Scheduler-like struct SchedulerMutex is a mutex to protect the scheduling process from race condition
Functions ¶
func CheckIfRuntimeInNode ¶ added in v0.7.0
func CheckIfRuntimeInNode(node corev1.Node, runtimeInfo base.RuntimeInfoInterface) (found bool)
CheckIfRuntimeInNode checks if the the runtime on this node
func DecreaseDatasetNum ¶ added in v0.6.0
func DecreaseDatasetNum(toUpdate *corev1.Node, runtimeInfo base.RuntimeInfoInterface, labelsToModify *common.LabelsToModify) error
DecreaseDatasetNum deletes the datasetNum label or updates the number of the dataset in the specific node.
func SyncScheduleInfoToCacheNodes ¶ added in v1.0.3
func SyncScheduleInfoToCacheNodes(runtimeInfo base.RuntimeInfoInterface, client client.Client) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.