Fix notification message to accurately reflect async upload timing

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-06 22:33:16 +00:00
parent 8be5b844c3
commit 9c4cf3d70e
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -37,9 +37,12 @@ def finalize_document_storage(original_file: str, processed_file: str, metadata:
configured_destinations = ["configured destinations"]
# 2) Enqueue uploads to all destinations (Dropbox, Nextcloud, Paperless)
# Note: send_to_all_destinations is asynchronous and queues upload tasks
send_to_all_destinations.delay(processed_file)
# 3) Send notification about successful file processing
# Note: This notification is sent after processing is complete but while uploads
# are being queued. The message reflects that uploads are being initiated.
try:
# Get file information
file_size = os.path.getsize(processed_file) if os.path.exists(processed_file) else 0