mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-16 08:26:44 +00:00
refactor
This commit is contained in:
27
src/scheduler.go
Normal file
27
src/scheduler.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user