def METHOD_NAME(self, task, config):
    if 'abort' in config:
        if task.silent_abort:
            return
        logger.debug('sending abort notification')
        self.send_notification(
            config['abort']['title'],
            config['abort']['message'],
            config['abort']['via'],
            template_renderer=task.render,
        )