def process_failed_task()

in amazon_polly_async_batch/responseprocessor.py [0:0]


def process_failed_task(task_id, status):
    """
    Given a failed task from Polly, updates the tasks table with the details and increments the failure count on the
    set table.

    :param task_id: the task ID
    :param status: the status as returned from Polly
    """
    logger.warning('Failed to process task {}; status was {}'.format(task_id, status))
    record = dynamo.TaskTable(TASK_TABLE).get_task(task_id)
    update_task_and_set_table(record, False)