mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-12 00:19:48 +00:00
Fix: Rotation fails due to celery chord (#6306)
Use Celery immutable signature so it does not take the result of the header task
This commit is contained in:
@@ -195,7 +195,7 @@ def rotate(doc_ids: list[int], degrees: int):
|
||||
logger.exception(f"Error rotating document {doc.id}: {e}")
|
||||
|
||||
if len(affected_docs) > 0:
|
||||
bulk_update_task = bulk_update_documents.s(document_ids=affected_docs)
|
||||
bulk_update_task = bulk_update_documents.si(document_ids=affected_docs)
|
||||
chord(header=rotate_tasks, body=bulk_update_task).delay()
|
||||
|
||||
return "OK"
|
||||
|
Reference in New Issue
Block a user