<reponame>PaloAltoNetworks/autocombo<filename>run_combo_selection.py<gh_stars>1-10
"""
@author: <NAME> (<EMAIL>)
Copyright (c) 2021 Palo Alto Networks
"""

import time
import logging

from utils import misc
from utils import const
from worker import combo_selection


if __name__ == '__main__':
    misc.init_logger(const.get_data_preparation_logs_filename())
    logger = logging.getLogger(misc.get_logger_name(__name__))
    logger.info('Combo selector start.')
    start_time = time.time()
    try:
        selector = combo_selection.ComboSelector()
        selector.select_combos()
    except Exception:
        info = 'Exception in combo selector.'
        logger.exception(info)
    time_elapsed = time.time() - start_time
    end_msg = f'Combo selector end. Time elapsed {time_elapsed:.2f} seconds'
    logger.info(end_msg)

"""
@author: <NAME> (<EMAIL>)
Copyright (c) 2021 Palo Alto Networks
"""

import time
import logging

from utils import misc
from utils import const
from worker import combo_selection


if __name__ == '__main__':
    misc.init_logger(const.get_data_preparation_logs_filename())
    logger = logging.getLogger(misc.get_logger_name(__name__))
    logger.info('Combo selector start.')
    start_time = time.time()
    try:
        selector = combo_selection.ComboSelector()
        selector.select_combos()
    except Exception:
        info = 'Exception in combo selector.'
        logger.exception(info)
    time_elapsed = time.time() - start_time
    end_msg = f'Combo selector end. Time elapsed {time_elapsed:.2f} seconds'
    logger.info(end_msg)
@author: <NAME> (<EMAIL>) Copyright (c) 2021 Palo Alto Networks