mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
28 lines
410 B
Go
28 lines
410 B
Go
|
|
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
|
||
|
|
}
|