Example #1
0
def process(time_str):
    valid_params()
    global bucket
    bucket = s3.init_bucket_from_env()
    retentions = compute(time_str)
    output_to_es(retentions)
    logger.info("Process end.")
Example #2
0
def process(time_str):
    valid_params()
    global bucket
    bucket = s3.init_bucket_from_env()
    login_players, platform_and_channels = compute(time_str)
    output_to_es(time_str, login_players, platform_and_channels)
    logger.info("Process end.")
Example #3
0
def process(time_str):
    valid_params()
    global bucket
    bucket = s3.init_bucket_from_env()
    create_date, effective_counts, churn_rates = compute(time_str)
    output_to_es(create_date, effective_counts, churn_rates)
    logger.info("Process end.")