File size: 407 Bytes
8887e47 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#!/bin/bash
python rag/svr/task_broker.py &
function task_exe(){
while [ 1 -eq 1 ];do mpirun -n 2 python rag/svr/task_executor.py ; done
}
function watch_broker(){
while [ 1 -eq 1];do
C=`ps aux|grep "task_broker.py"|grep -v grep|wc -l`;
if [ $C -lt 1 ];then
python rag/svr/task_broker.py &
fi
sleep 5;
done
}
task_exe &
sleep 10;
watch_broker &
python api/ragflow_server.py |