code: def do_loop_turn(self):
          
          if not self.first_scheduling:
              # Ok, now all is initialized, we can make the initial broks
              logger.info("First scheduling launched")
              _t0 = time.time()
              # Program start brok
              self.sched.initial_program_status()
              # First scheduling
              self.sched.schedule()
              statsmgr.timer('first_scheduling', time.time() - _t0)
              logger.info("First scheduling done")
  
              # Connect to our passive satellites if needed
              for satellite in [s for s in list(self.pollers.values()) if s.passive]:
                  if not self.daemon_connection_init(satellite):
                      logger.error("Passive satellite connection failed: %s", satellite)
  
              for satellite in [s for s in list(self.reactionners.values()) if s.passive]:
                  if not self.daemon_connection_init(satellite):
                      logger.error("Passive satellite connection failed: %s", satellite)
  
              # Ticks are for recurrent function call like consume, del zombies etc
              self.sched.ticks = 0
              self.first_scheduling = True
  
          # Each loop turn, execute the daemon specific treatment...
          # only if the daemon has a configuration to manage
          if self.sched.pushed_conf:
              # If scheduling is not yet enabled, enable scheduling
              if not self.sched.must_schedule:
                  self.sched.start_scheduling()
                  self.sched.before_run()
              self.sched.run()
          else:
              logger.warning("#%d - No monitoring configuration to scheduler...",
                             self.loop_count)
docs: Scheduler loop turn
  
          Simply run the Alignak scheduler loop
  
          This is called when a configuration got received by the scheduler daemon. As of it,
          check if the first scheduling has been done... and manage this.
  
          :return: None