def METHOD_NAME(self):
    if self.channel_tag is not None:
        self.channel.basic_cancel(self.channel_tag)
        self.channel_tag = None
    else:
        logger.error("Do not cancel a non-existing job")