Commit aebd7fbd by 杨林龙

优化加载

1 parent 9d35f90e
Showing 1 changed file with 3 additions and 3 deletions
...@@ -260,9 +260,9 @@ async def create_url(param: UrlParam): ...@@ -260,9 +260,9 @@ async def create_url(param: UrlParam):
insertSql = ( insertSql = (
f"INSERT INTO dj_smartcarlife.ali_asr_model_res (task_id,file_url,task_status) VALUES ('{task_id}','{url}',0);") f"INSERT INTO dj_smartcarlife.ali_asr_model_res (task_id,file_url,task_status) VALUES ('{task_id}','{url}',0);")
res = db.execute_modify(insertSql) res = db.execute_modify(insertSql)
# process = multiprocessing.Process(target=deal_worker, args=(url, task_id,)) process = multiprocessing.Process(target=deal_worker, args=(url, task_id,))
# log.info(f"process:{process}") log.info(f"process:{process}")
# process.start() process.start()
# pool.map_async(target=deal_worker_wrap,[(url,task_id)]) # pool.map_async(target=deal_worker_wrap,[(url,task_id)])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!