Merge pull request #267 from KevinZhang19870314/dev

feat: add support for maximum concurrency of /api/v1/videos
This commit is contained in:
Harry
2024-04-17 11:09:03 +08:00
committed by GitHub
7 changed files with 170 additions and 2 deletions

View File

@@ -173,3 +173,9 @@ def start(task_id, params: VideoParams):
}
sm.state.update_task(task_id, state=const.TASK_STATE_COMPLETE, progress=100, **kwargs)
return kwargs
# def start_test(task_id, params: VideoParams):
# print(f"start task {task_id} \n")
# time.sleep(5)
# print(f"task {task_id} finished \n")