1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
Files
YAO-scheduler/src/scheduler.go

32 lines
486 B
Go
Raw Normal View History

2019-07-10 20:40:43 +08:00
package main
type Scheduler interface {
Start()
Schedule(Job)
UpdateProgress(jobName string, state State)
2019-08-01 13:42:53 +08:00
AcquireResource(Job, Task) NodeStatus
2019-07-10 20:40:43 +08:00
2019-08-01 13:42:53 +08:00
ReleaseResource(Job, NodeStatus)
2019-07-10 20:40:43 +08:00
AcquireNetwork() string
ReleaseNetwork(network string)
QueryState(jobName string) MsgJobStatus
QueryLogs(jobName string, taskName string) MsgLog
Stop(jobName string) MsgStop
ListJobs() MsgJobList
Summary() MsgSummary
2020-04-11 11:38:04 +08:00
Attach(GPU string, job string)
Detach(GPU string, job string)
2019-07-10 20:40:43 +08:00
}