make task resumable (#2132)

### What problem does this PR solve?

### Type of change


- [x] Performance Improvement
This commit is contained in:
Kevin Hu
2024-08-28 14:06:27 +08:00
committed by GitHub
parent 074d4f5031
commit 5daed10136
4 changed files with 43 additions and 16 deletions

View File

@ -11,13 +11,13 @@ fi
function task_exe(){
while [ 1 -eq 1 ];do
$PY rag/svr/task_executor.py ;
$PY rag/svr/task_executor.py $1;
done
}
for ((i=0;i<WS;i++))
do
task_exe &
task_exe $i &
done
while [ 1 -eq 1 ];do