Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-2470 [FIX] Fix AttributeError when logging file batch creation in general worker (#1600)

ali70400eb7ccdb
diff --git a/workers/general/tasks.py b/workers/general/tasks.py
index a34d60cbf..f8b1a7500 100644
--- a/workers/general/tasks.py
+++ b/workers/general/tasks.py
@@ -442,7 +442,7 @@ def _process_file_batches_general(
)
logger.info(
- f"Created file batch {batch_response.get('batch_id')} with {batch_response.get('total_files')} files"
+ f"Created file batch {batch_response.batch_id} with {batch_response.total_files} files"
)
return [batch_response]