Move InitCycleState from openSession to OpenSession

Signed-off-by: Yuqi Wu <wuyuqi22@mails.ucas.ac.cn>
This commit is contained in:
Yuqi Wu 2025-06-16 20:01:23 +08:00
parent 3aa260cf38
commit 3c52b43750
2 changed files with 3 additions and 2 deletions

View File

@ -47,6 +47,9 @@ func OpenSession(cache cache.Cache, tiers []conf.Tier, configurations []conf.Con
}
}
}
ssn.InitCycleState()
return ssn
}

View File

@ -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))