Example #1
0
def main(build=None):
    LOGGER.info("Starting compare for cid=%s, pids=%s...",
                settings.DEFAULT.campaigns, settings.DEFAULT.publishers)
    output.aggregate()

    if not build:
        build = output.generate_build_string()
    jobname = "compare_" + build
    pb = output.create(build=jobname)

    cids = placelocal.get_cids_from_settings()
    compare(pb, cids=cids)
    return pb
Example #2
0
def main(build=None):
    LOGGER.info("Starting compare for cid=%s, pids=%s...",
                settings.DEFAULT.campaigns, settings.DEFAULT.publishers)
    output.aggregate()

    if not build:
        build = output.generate_build_string()
    jobname = "compare_" + build
    pb = output.create(build=jobname)

    cids = placelocal.get_cids_from_settings()
    compare(pb, cids=cids)
    return pb
Example #3
0
def main():
    """
    Runs capture, returns the job name for the capture job
    :param cids:
    :param pids:
    :return:
    """

    original_build = output.generate_build_string()
    build = "capture_" + original_build
    pathbuilder = output.create(build=build)
    cids = placelocal.get_cids_from_settings()
    LOGGER.info("Starting capture against %s for %s campaigns: %s...",
                settings.DEFAULT.domain,
                len(cids), cids)
    output.aggregate()

    configs = settings.DEFAULT.configs_in_comparisons()
    __capture_tags_for_configs(cids=cids, pathbuilder=pathbuilder, configs=configs)
    return original_build
Example #4
0
def main():
    """
    Runs capture, returns the job name for the capture job
    :param cids:
    :param pids:
    :return:
    """

    original_build = output.generate_build_string()
    build = "capture_" + original_build
    pathbuilder = output.create(build=build)
    cids = placelocal.get_cids_from_settings()
    LOGGER.info("Starting capture against %s for %s campaigns: %s...",
                settings.DEFAULT.domain, len(cids), cids)
    output.aggregate()

    configs = settings.DEFAULT.configs_in_comparisons()
    __capture_tags_for_configs(cids=cids,
                               pathbuilder=pathbuilder,
                               configs=configs)
    return original_build