mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 20:46:53 +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:
1 parent
957691c454
commit
ae2b302962
2 files changed
+4
-4
No files matched your search
@@ -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