def __init__(self): check_instances = PeriodicCallback(self.check_instances, ALERT_CHECK_CYCLE * 1000) check_instances.start()