def METHOD_NAME():
    """Called periodically (see celery_config.py) to discard logs of old SRPM builds."""
    logger.info("About to discard old SRPM build logs & artifact urls.")
    outdated_after_days = getenv(
        "SRPMBUILDS_OUTDATED_AFTER_DAYS", SRPMBUILDS_OUTDATED_AFTER_DAYS
    )
    ago = timedelta(days=int(outdated_after_days))
    for build in SRPMBuildModel.get_older_than(ago):
        logger.debug(
            f"SRPM build {build.id} is older than '{ago}'. "
            "Discarding log and artifact url."
        )
        build.set_logs(None)
        build.set_url(None)