对接任务

This commit is contained in:
2024-12-04 16:19:18 +08:00
parent 9139727dc6
commit 679f61c18f
3 changed files with 26 additions and 13 deletions

View File

@ -4,7 +4,6 @@ import biz.task
import config
from template import load_local_template
from util import api
from util.system import get_sys_info
load_local_template()
@ -12,8 +11,8 @@ load_local_template()
while True:
# print(get_sys_info())
print("waiting for task...")
task_list = api.get_render_task()
task_list = api.sync_center()
for task in task_list:
print("start task:", task)
biz.task.start_task(task)
break
sleep(1)