소스 검색

Use a lower thread count on Heroku for memory limits

pull/8/head
tech234a 3 년 전
부모
커밋
aecead3162
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -2
      worker.py

+ 5
- 2
worker.py 파일 보기

@@ -253,8 +253,11 @@ del runthread

sleep(5)

#now create the other 49 threads
for i in range(49):
THREADCNT = 49
if HEROKU:
THREADCNT = 19
#now create the rest of the threads
for i in range(THREADCNT):
runthread = Thread(target=threadrunner, args=(jobs,))
runthread.start()
threads.append(runthread)


불러오는 중...
취소
저장