':type scheduler_daemon: shinken.daemons.schedulerdaemon.Shinken'

def __init__(self, scheduler_daemon):

    self.sched_daemon = scheduler_daemon
    self.must_run = True
    self.waiting_results_lock = threading.RLock()
    self.waiting_results = []
    self.recurrent_works = {0: ('update_downtimes_and_comments', self.update_downtimes_and_comments, 1), 1: ('schedule', self.schedule, 1), 2: ('consume_results', self.consume_results, 1), 3: ('get_new_actions', self.get_new_actions, 1), 4: ('get_new_broks', self.get_new_broks, 1), 5: ('scatter_master_notifications', self.scatter_master_notifications, 1), 6: ('delete_zombie_checks', self.delete_zombie_checks, 1), 7: ('delete_zombie_actions', self.delete_zombie_actions, 1), 8: ('check_freshness', self.check_freshness, 10), 9: ('clean_caches', self.clean_caches, 1), 10: ('update_retention_file', self.update_retention_file, 3600), 11: ('check_orphaned', self.check_orphaned, 60), 12: ('get_and_register_update_program_status_brok', self.get_and_register_update_program_status_brok, 10), 13: ('check_for_system_time_change', self.sched_daemon.check_for_system_time_change, 1), 14: ('manage_internal_checks', self.manage_internal_checks, 1), 15: ('clean_queues', self.clean_queues, 1), 16: ('update_business_values', self.update_business_values, 60), 17: ('reset_topology_change_flag', self.reset_topology_change_flag, 1), 18: ('check_for_expire_acknowledge', self.check_for_expire_acknowledge, 1), 19: ('send_broks_to_modules', self.send_broks_to_modules, 1), 20: ('get_objects_from_from_queues', self.get_objects_from_from_queues, 1)}
    self.nb_checks_send = 0
    self.nb_actions_send = 0
    self.nb_broks_send = 0
    self.nb_check_received = 0
    logger.load_obj(self)
    self.instance_id = 0
    self.checks = {}
    self.actions = {}
    self.downtimes = {}
    self.contact_downtimes = {}
    self.comments = {}
    self.broks = []
    self.has_full_broks = False
    self.need_dump_memory = False
    self.need_objects_dump = False
    self.push_flavor = 0
    self.brokers = {}
    self.pollers = {}
    self.reactionners = {}
