Преглед изворни кода

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)


Loading…
Откажи
Сачувај