def notify_of_set_problem()

in amazon_polly_async_batch/setcompletionwaiter.py [0:0]


def notify_of_set_problem(event, context):
    """
    Notifies the completion topic that no updates have taken place in a long time. This clues the user in
    to the fact that something is wrong and the set likely was abandoned somehow.

    :param event: the event
    :param context: ignored
    """
    try:
        set_name = event['setName']
        logger.info("Notifying of problem with set {}".format(set_name))
        desc = event['description']
        problematic = '{}{}'.format(event['originalName'], ' ({})'.format(desc) if len(desc) > 0 else '')
        message_text = """