code: def get_scheduler_info():
      
  
      scheduler = current_app.apscheduler
  
      d = OrderedDict([
          ('current_host', scheduler.host_name),
          ('allowed_hosts', scheduler.allowed_hosts),
          ('running', scheduler.running)
      ])
  
      return jsonify(d)
docs: Gets the scheduler info.