smaller chunk for update_collections_total to avoid SoftTimeLimitExceeded
This commit is contained in:
Родитель
18bc63d981
Коммит
6d9d999425
|
@ -37,7 +37,7 @@ def update_collections_total():
|
|||
.annotate(sum=Sum('count')))
|
||||
|
||||
ts = [tasks.update_collections_total.subtask(args=[chunk])
|
||||
for chunk in chunked(d, 100)]
|
||||
for chunk in chunked(d, 50)]
|
||||
TaskSet(ts).apply_async()
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче