You've already forked FrameTour-RenderWorker
Init
This commit is contained in:
15
biz/task.py
Normal file
15
biz/task.py
Normal file
@ -0,0 +1,15 @@
|
||||
from template import get_template_def
|
||||
|
||||
|
||||
def normalize_task(task_info):
|
||||
...
|
||||
return task_info
|
||||
|
||||
|
||||
def start_task(task_info):
|
||||
from biz.ffmpeg import parse_ffmpeg_task, start_ffmpeg_task
|
||||
task_info = normalize_task(task_info)
|
||||
task_template = "test_template"
|
||||
template_info = get_template_def(task_template)
|
||||
ffmpeg_task = parse_ffmpeg_task(task_info, template_info)
|
||||
result = start_ffmpeg_task(ffmpeg_task)
|
Reference in New Issue
Block a user