소스 검색

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
No account linked to committer's email address
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      docker/entrypoint.sh

+ 3
- 1
docker/entrypoint.sh 파일 보기

@@ -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…
취소
저장