def METHOD_NAME(
    sources: list[Union[ReferenceFace, FaceDetectionPhoto]]
):
    """Submit a batch of sources to the facedetection lambda function.
    If submitting the sources fails, this is logged and
    reported to Sentry, but no exception is raised.
    """
    payload = {
        "api_url": settings.BASE_URL,
        "sources": [_serialize_lambda_source(source) for source in sources],
    }
    for source in sources:
        source.submitted_at = timezone.now()
        source.save()
    try:
        lambda_client = boto3.client(
            service_name="lambda",
            aws_access_key_id=settings.AWS_ACCESS_KEY_ID,
            aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY,
        )
        response = lambda_client.invoke(
            FunctionName=settings.FACEDETECTION_LAMBDA_ARN,
            InvocationType="Event",
            Payload=json.dumps(payload),
        )
        if response["StatusCode"] != 202:
            raise Exception("Lambda response was not 202.")
    except Exception as e:
        logger.error(
            "Submitting sources to lambda failed. Reason: %s", str(e), exc_info=True
        )
        capture_exception(e)