diff --git a/mayan/apps/checkouts/tasks.py b/mayan/apps/checkouts/tasks.py index 346f27a5a6..fe888bfa18 100644 --- a/mayan/apps/checkouts/tasks.py +++ b/mayan/apps/checkouts/tasks.py @@ -11,7 +11,7 @@ LOCK_EXPIRE = 50 logger = logging.getLogger(__name__) -@app.task +@app.task(ignore_result=True) def task_check_expired_check_outs(): logger.debug('executing...') lock_id = u'task_expired_check_outs' diff --git a/mayan/apps/mailer/tasks.py b/mayan/apps/mailer/tasks.py index 42fbd75a13..b0b277555b 100644 --- a/mayan/apps/mailer/tasks.py +++ b/mayan/apps/mailer/tasks.py @@ -6,7 +6,7 @@ from documents.models import Document from mayan.celery import app -@app.task +@app.task(ignore_result=True) def task_send_document(subject_text, body_text_content, sender, recipient, document_ids=None): email_msg = EmailMultiAlternatives(subject_text, body_text_content, sender, [recipient]) diff --git a/mayan/apps/ocr/tasks.py b/mayan/apps/ocr/tasks.py index 1d64894aac..d5b1eb74bf 100644 --- a/mayan/apps/ocr/tasks.py +++ b/mayan/apps/ocr/tasks.py @@ -19,7 +19,7 @@ logger = logging.getLogger(__name__) LOCK_EXPIRE = 60 * 10 # Adjust to worst case scenario -@app.task +@app.task(ignore_result=True) def task_do_ocr(document_pk): lock_id = u'task_do_ocr_doc-%d' % document_pk try: diff --git a/mayan/apps/sources/tasks.py b/mayan/apps/sources/tasks.py index dbc47ea878..98cf19e9ad 100644 --- a/mayan/apps/sources/tasks.py +++ b/mayan/apps/sources/tasks.py @@ -13,7 +13,7 @@ from .models import Source logger = logging.getLogger(__name__) -@app.task +@app.task(ignore_result=True) def task_upload_document(source_id, file_path, filename=None, use_file_name=False, document_type_id=None, expand=False, metadata_dict_list=None, user_id=None, document_id=None, new_version_data=None, command_line=False, description=None): source = Source.objects.get_subclass(pk=source_id)