mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 16:28:59 +08:00
Set the number of task_executor processes through the environment variable WS. (#846)
### What problem does this PR solve? ### Type of change - [x] Other (please describe): Use environment variable to control the task executor processor number.
This commit is contained in:
parent
93b35f4e58
commit
71068895ae
@ -5,6 +5,9 @@
|
||||
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
|
||||
|
||||
PY=python3
|
||||
if [[ -z "$WS" || $WS -lt 1 ]]; then
|
||||
WS=1
|
||||
fi
|
||||
|
||||
function task_exe(){
|
||||
while [ 1 -eq 1 ];do
|
||||
@ -12,7 +15,6 @@ function task_exe(){
|
||||
done
|
||||
}
|
||||
|
||||
WS=1
|
||||
for ((i=0;i<WS;i++))
|
||||
do
|
||||
task_exe &
|
||||
|
Loading…
x
Reference in New Issue
Block a user