def do_clean_image_info_by_retention(ctx: ActorContext): num_rows = ImageInfo.delete_by_retention() LOG.info('delete {} outdated imageinfos'.format(num_rows))
def do_clean_image_info_by_retention(ctx: ActorContext): if not CONFIG.detect_story_image_enable: return num_rows = ImageInfo.delete_by_retention() LOG.info('delete {} outdated imageinfos'.format(num_rows))