X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0d6bbe91d75e82866aaa232eee4a036759446a86..4bdb838df1fa9fa020acbb1cd53cc42341c45546:/apps/catalogue/utils.py?ds=sidebyside diff --git a/apps/catalogue/utils.py b/apps/catalogue/utils.py index 185f5fa34..949ac96b2 100644 --- a/apps/catalogue/utils.py +++ b/apps/catalogue/utils.py @@ -140,7 +140,7 @@ class AttachmentHttpResponse(HttpResponse): for chunk in read_chunks(f): self.write(chunk) -@task +@task(rate_limit=settings.CATALOGUE_CUSTOMPDF_RATE_LIMIT) def async_build_pdf(book_id, customizations, file_name): """ A celery task to generate pdf files.