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"] configured_destinations = ["configured destinations"]
# 2) Enqueue uploads to all destinations (Dropbox, Nextcloud, Paperless) # 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) send_to_all_destinations.delay(processed_file)
# 3) Send notification about successful file processing # 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: try:
# Get file information # Get file information
file_size = os.path.getsize(processed_file) if os.path.exists(processed_file) else 0 file_size = os.path.getsize(processed_file) if os.path.exists(processed_file) else 0
+1 -1
View File
@@ -209,7 +209,7 @@ Document Type: {doc_type}
Tags: {tags_str} Tags: {tags_str}
Destinations: {destinations_str} Destinations: {destinations_str}
The file has been successfully processed and uploaded to all configured destinations. The file has been successfully processed and is being uploaded to all configured destinations.
""" """
return send_notification( return send_notification(
+1 -1
View File
@@ -97,7 +97,7 @@ Document Type: Invoice
Tags: financial, vendor-acme, urgent Tags: financial, vendor-acme, urgent
Destinations: Dropbox, Google Drive, Paperless-ngx Destinations: Dropbox, Google Drive, Paperless-ngx
The file has been successfully processed and uploaded to all configured destinations. The file has been successfully processed and is being uploaded to all configured destinations.
``` ```
## Automated Credential Checking ## Automated Credential Checking