def main(): LoggingUtils.setup_logs() email = '' password = '' optimalq_connector = OptimalQConnector(email, password) token = optimalq_connector.get_token() consumer_group = 'get_recommendations' pool_uid = '' snooze_seconds = 10 recommendations_amount_topic = 'recommendations_topic' recommendations_topic = 'push_recommendations_topic' get_recommendations = GetRecommendations(token, optimalq_connector, pool_uid, snooze_seconds, consumer_group, recommendations_amount_topic, recommendations_topic) try: get_recommendations.start() except SystemExit: logging.info("GetRecommendationsGenesys instructed to stop.") except Exception as ex: logging.exception( "Exception in GetRecommendationsGenesys! - {}".format(ex)) if get_recommendations is not None: get_recommendations.terminate() logging.info("GetRecommendationsGenesys has terminated.")
def main(): LoggingUtils.setup_logs() call_report = CallReportGenesys() try: call_report.start() except SystemExit: logging.info("CallReportGenesys instructed to stop.") except Exception as ex: logging.exception("Exception in CallReportGenesys! - {}".format(ex)) if call_report is not None: call_report.terminate() logging.info("CallReportGenesys has terminated.")
def main(): LoggingUtils.setup_logs() group = "push_recommendations" recommendations_topic = 'push_recommendations_topic' push_recommendations = PushRecommendationsGenesys(group, recommendations_topic) try: push_recommendations.start() except SystemExit: logging.info("PushRecommendationsGenesys instructed to stop.") except Exception as ex: logging.exception( "Exception in PushRecommendationsGenesys! - {}".format(ex)) if push_recommendations is not None: push_recommendations.terminate() logging.info("PushRecommendationsGenesys has terminated.")
def main(): LoggingUtils.setup_logs() email = '' password = '' optimalq_connector = OptimalQConnector(email, password) token = optimalq_connector.get_token() group = "sync_report" pool_uid = "" call_reports_topic = 'call_report_topic' sync_report = SyncReport(group, token, optimalq_connector, pool_uid, call_reports_topic) try: sync_report.start() except SystemExit: logging.info("SyncReport instructed to stop.") except Exception as ex: logging.exception("Exception in SyncReport! - {}".format(ex)) if sync_report is not None: sync_report.terminate() logging.info("SyncReport has terminated.")