You've already forked FrameTour-RenderWorker
feat(重构): 实现新的渲染服务架构
- 新增 RenderTask
This commit is contained in:
10
index.py
10
index.py
@@ -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
|
||||
|
Reference in New Issue
Block a user