custom pdf in dirs
[wolnelektury.git] / apps / catalogue / utils.py
index 185f5fa..949ac96 100644 (file)
@@ -140,7 +140,7 @@ class AttachmentHttpResponse(HttpResponse):
             for chunk in read_chunks(f):
                 self.write(chunk)
 
             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.
 def async_build_pdf(book_id, customizations, file_name):
     """
     A celery task to generate pdf files.