def process_analyses(analysis_system_instance, analysis_method, sleep_time):
    """Process all analyses which are scheduled for the analysis system instance.

    This function does not terminate on its own, give it a SIGINT or Ctrl+C to stop.

    :param analysis_system_instance: The analysis system instance for which the analyses are scheduled.
    :param analysis_method: A function or method which analyses a scheduled analysis. The function must not take further arguments.
    :param sleep_time: Time to wait between polls to the MASS server
    """
    try:
        while True:
            for analysis_request in analysis_system_instance.get_scheduled_analyses():
                analysis_method(analysis_request)
            time.sleep(sleep_time)
    except KeyboardInterrupt:
        logging.debug('Shutting down.')
        return
def process_analyses ( analysis_system_instance , analysis_method , sleep_time ) : try : while True : for analysis_request in analysis_system_instance . get_scheduled_analyses ( ) : analysis_method ( analysis_request ) time . sleep ( sleep_time ) except KeyboardInterrupt : logging . debug ( 'Shutting down.' ) return
Process all analyses which are scheduled for the analysis system instance.

    This function does not terminate on its own, give it a SIGINT or Ctrl+C to stop.

    :param analysis_system_instance: The analysis system instance for which the analyses are scheduled.
    :param analysis_method: A function or method which analyses a scheduled analysis. The function must not take further arguments.
    :param sleep_time: Time to wait between polls to the MASS server