Set the ignore_result option for the tasks that don't return values

This commit is contained in:
Roberto Rosario
2014-10-11 02:05:02 -04:00
parent feb90cb426
commit 36694cc5c5
4 changed files with 4 additions and 4 deletions

View File

@@ -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: