mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
not listening on internal rater and scheduler no schedulet actions
This commit is contained in:
@@ -256,7 +256,7 @@ func main() {
|
||||
go stopRaterSingnalHandler()
|
||||
}
|
||||
responder := ×pans.Responder{ExitChan: exitChan}
|
||||
if rater_enabled && !balancer_enabled {
|
||||
if rater_enabled && !balancer_enabled && rater_listen != INTERNAL {
|
||||
go listenToRPCRequests(responder, rater_listen, rater_rpc_encoding)
|
||||
}
|
||||
if balancer_enabled {
|
||||
|
||||
@@ -37,6 +37,9 @@ type scheduler struct {
|
||||
|
||||
func (s scheduler) loop() {
|
||||
for {
|
||||
if len(s.queue) == 0 {
|
||||
<-restartLoop
|
||||
}
|
||||
a0 := s.queue[0]
|
||||
now := time.Now()
|
||||
if a0.GetNextStartTime().Equal(now) || a0.GetNextStartTime().Before(now) {
|
||||
|
||||
Reference in New Issue
Block a user