浏览代码

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.
tags/v0.6.0
dashi6174 1年前
父节点
当前提交
71068895ae
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      docker/entrypoint.sh

+ 3
- 1
docker/entrypoint.sh 查看文件

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/


PY=python3 PY=python3
if [[ -z "$WS" || $WS -lt 1 ]]; then
WS=1
fi


function task_exe(){ function task_exe(){
while [ 1 -eq 1 ];do while [ 1 -eq 1 ];do
done done
} }


WS=1
for ((i=0;i<WS;i++)) for ((i=0;i<WS;i++))
do do
task_exe & task_exe &

正在加载...
取消
保存