add dockerfile and fix trival bugs (#78)
This commit is contained in:
24
docker/entrypoint.sh
Normal file
24
docker/entrypoint.sh
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user