Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

entrypoint-parser.sh 606B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # replace env variables in the service_conf.yaml file
  3. rm -rf /ragflow/conf/service_conf.yaml
  4. while IFS= read -r line || [[ -n "$line" ]]; do
  5. # Use eval to interpret the variable with default values
  6. eval "echo \"$line\"" >> /ragflow/conf/service_conf.yaml
  7. done < /ragflow/conf/service_conf.yaml.template
  8. export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
  9. PY=python3
  10. CONSUMER_NO_BEG=$1
  11. CONSUMER_NO_END=$2
  12. function task_exe(){
  13. while [ 1 -eq 1 ]; do
  14. $PY rag/svr/task_executor.py $1;
  15. done
  16. }
  17. for ((i=CONSUMER_NO_BEG; i<CONSUMER_NO_END; i++))
  18. do
  19. task_exe $i &
  20. done
  21. wait;