feat(重构): 实现新的渲染服务架构

- 新增 RenderTask
This commit is contained in:
2025-09-12 14:41:58 +08:00
parent c36e838d4f
commit d770d84927
22 changed files with 1987 additions and 170 deletions

View File

@@ -4,20 +4,22 @@ import sys
import config
import biz.task
from telemetry import init_opentelemetry
from template import load_local_template, download_template, TEMPLATES
from services import DefaultTemplateService
from util import api
import os
import glob
load_local_template()
# 使用新的服务架构
template_service = DefaultTemplateService()
template_service.load_local_templates()
# Check for redownload parameter
if 'redownload' in sys.argv:
print("Redownloading all templates...")
for template_name in TEMPLATES.keys():
for template_name in template_service.templates.keys():
print(f"Redownloading template: {template_name}")
download_template(template_name)
template_service.download_template(template_name)
print("All templates redownloaded successfully!")
sys.exit(0)
import logging