1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-16 08:26:44 +00:00
This commit is contained in:
2019-07-10 20:40:43 +08:00
parent ad1497bfbd
commit c42154696e
10 changed files with 154 additions and 115 deletions

27
src/scheduler.go Normal file
View File

@@ -0,0 +1,27 @@
package main
type Scheduler interface {
Start()
Schedule(Job)
UpdateProgress(jobName string, state State)
AcquireResource(Task) NodeStatus
ReleaseResource(NodeStatus)
AcquireNetwork() string
ReleaseNetwork(network string)
QueryState(jobName string) MsgJobStatus
QueryLogs(jobName string, taskName string) MsgLog
Stop(jobName string) MsgStop
ListJobs() MsgJobList
Summary() MsgSummary
}