mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01: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:
parent
957691c454
commit
ae2b302962
2 changed files with 4 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue