1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36:44 +00:00
This commit is contained in:
2020-04-11 11:38:04 +08:00
parent 7ed56468fd
commit 11aded3427
6 changed files with 55 additions and 0 deletions

View File

@@ -366,3 +366,11 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
scheduler.nextQueue = next
log.Info("updateNextQueue ->", next)
}
func (scheduler *SchedulerFair) Attach(GPU string, job string) {
pool.attach(GPU, job)
}
func (scheduler *SchedulerFair) Detach(GPU string, job string) {
pool.detach(GPU, job)
}