mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-16 16:36:45 +00:00
update
This commit is contained in:
@@ -7,14 +7,10 @@ type Scheduler interface {
|
||||
|
||||
UpdateProgress(job Job, state State)
|
||||
|
||||
AcquireResource(Job, Task, []NodeStatus) NodeStatus
|
||||
AcquireResource(Job) []NodeStatus
|
||||
|
||||
ReleaseResource(Job, NodeStatus)
|
||||
|
||||
AcquireNetwork() string
|
||||
|
||||
ReleaseNetwork(network string)
|
||||
|
||||
QueryState(jobName string) MsgJobStatus
|
||||
|
||||
QueryLogs(jobName string, taskName string) MsgLog
|
||||
@@ -25,19 +21,11 @@ type Scheduler interface {
|
||||
|
||||
Summary() MsgSummary
|
||||
|
||||
Attach(GPU string, job string)
|
||||
|
||||
Detach(GPU string, job Job)
|
||||
|
||||
Enable() bool
|
||||
|
||||
Disable() bool
|
||||
|
||||
UpdateParallelism(parallelism int) bool
|
||||
|
||||
SetShareRatio(ratio float64) bool
|
||||
|
||||
SetPreScheduleRatio(ratio float64) bool
|
||||
|
||||
updateGroup(group Group) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user