def METHOD_NAME(requests_json):
    """
    Identify Cachito requests which have reached end of life and mark them as stale.
    :param list requests_json: list of Cachito requests (as JSON data)
    """
    current_time = datetime.utcnow()
    for request in requests_json:
        if request["state"] not in ("complete", "in_progress", "failed"):
            continue
        lifetime = config.cachito_request_lifetime
        if request["state"] == "failed":
            lifetime = config.cachito_request_lifetime_failed
        date_time_obj = datetime.strptime(request["updated"], "%Y-%m-%dT%H:%M:%S.%f")
        if current_time - date_time_obj > timedelta(lifetime):
            mark_as_stale(request["id"])