def METHOD_NAME(request_log):
    from corehq.motech.generic_inbound.models import RequestLog
    def get_request_data():
        return ApiRequest.from_log(request_log)
    response = process_api_request(request_log.api, request_log.id, get_request_data)
    with transaction.atomic():
        request_log.status = RequestLog.Status.from_status_code(response.status)
        request_log.attempts += 1
        request_log.response_status = response.status
        request_log.save()
        make_processing_attempt(response, request_log, is_retry=True)