Move InitCycleState from openSession to OpenSession
Signed-off-by: Yuqi Wu <wuyuqi22@mails.ucas.ac.cn>
This commit is contained in:
parent
3aa260cf38
commit
3c52b43750
|
|
@ -47,6 +47,9 @@ func OpenSession(cache cache.Cache, tiers []conf.Tier, configurations []conf.Con
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ssn.InitCycleState()
|
||||
|
||||
return ssn
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,8 +214,6 @@ func openSession(cache cache.Cache) *Session {
|
|||
ssn.TotalResource.Add(n.Allocatable)
|
||||
}
|
||||
|
||||
ssn.InitCycleState()
|
||||
|
||||
klog.V(3).Infof("Open Session %v with <%d> Job and <%d> Queues",
|
||||
ssn.UID, len(ssn.Jobs), len(ssn.Queues))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue