@@ -107,7 +107,7 @@ def check_user_file_processing(self: Task, *, tenant_id: str) -> None:
107
107
for user_file_id in user_file_ids :
108
108
self .app .send_task (
109
109
OnyxCeleryTask .PROCESS_SINGLE_USER_FILE ,
110
- kwargs = {"user_file_id" : user_file_id , "tenant_id" : tenant_id },
110
+ kwargs = {"user_file_id" : str ( user_file_id ) , "tenant_id" : tenant_id },
111
111
queue = OnyxCeleryQueues .USER_FILE_PROCESSING ,
112
112
priority = OnyxCeleryPriority .HIGH ,
113
113
)
@@ -247,7 +247,7 @@ def process_single_user_file(self: Task, *, user_file_id: str, tenant_id: str) -
247
247
248
248
except Exception as e :
249
249
task_logger .exception (
250
- f"process_single_user_file - Error id={ user_file_id } : { e } "
250
+ f"process_single_user_file - Error processing file id={ user_file_id } - { e . __class__ . __name__ } "
251
251
)
252
252
uf .status = UserFileStatus .FAILED
253
253
db_session .add (uf )
@@ -269,7 +269,7 @@ def process_single_user_file(self: Task, *, user_file_id: str, tenant_id: str) -
269
269
db_session .commit ()
270
270
271
271
task_logger .exception (
272
- f"process_single_user_file - Error id={ user_file_id } : { e } "
272
+ f"process_single_user_file - Error processing file id={ user_file_id } - { e . __class__ . __name__ } "
273
273
)
274
274
return None
275
275
finally :
@@ -313,7 +313,7 @@ def check_for_user_file_project_sync(self: Task, *, tenant_id: str) -> None:
313
313
for user_file_id in user_file_ids :
314
314
self .app .send_task (
315
315
OnyxCeleryTask .PROCESS_SINGLE_USER_FILE_PROJECT_SYNC ,
316
- kwargs = {"user_file_id" : user_file_id , "tenant_id" : tenant_id },
316
+ kwargs = {"user_file_id" : str ( user_file_id ) , "tenant_id" : tenant_id },
317
317
queue = OnyxCeleryQueues .USER_FILE_PROJECT_SYNC ,
318
318
priority = OnyxCeleryPriority .HIGH ,
319
319
)
@@ -392,7 +392,7 @@ def process_single_user_file_project_sync(
392
392
393
393
except Exception as e :
394
394
task_logger .exception (
395
- f"process_single_user_file_project_sync - Error id={ user_file_id } : { e } "
395
+ f"process_single_user_file_project_sync - Error syncing project for file id={ user_file_id } - { e . __class__ . __name__ } "
396
396
)
397
397
return None
398
398
finally :
@@ -529,7 +529,7 @@ def user_file_docid_migration_task(self: Task, *, tenant_id: str) -> bool:
529
529
user_project_ids = [project .id for project in uf .projects ]
530
530
except Exception as e :
531
531
task_logger .warning (
532
- f"Tenant={ tenant_id } failed fetching projects for doc_id={ new_uuid } : { e } "
532
+ f"Tenant={ tenant_id } failed fetching projects for doc_id={ new_uuid } - { e . __class__ . __name__ } "
533
533
)
534
534
try :
535
535
_update_document_id_in_vespa (
@@ -540,7 +540,7 @@ def user_file_docid_migration_task(self: Task, *, tenant_id: str) -> bool:
540
540
)
541
541
except Exception as e :
542
542
task_logger .warning (
543
- f"Tenant={ tenant_id } failed Vespa update for { old_doc_id } -> { new_uuid } : { e } "
543
+ f"Tenant={ tenant_id } failed Vespa update for doc_id= { new_uuid } - { e . __class__ . __name__ } "
544
544
)
545
545
546
546
# Update search_doc records to refer to the UUID string
@@ -627,7 +627,8 @@ def user_file_docid_migration_task(self: Task, *, tenant_id: str) -> bool:
627
627
normalized += 1
628
628
except Exception as e :
629
629
task_logger .warning (
630
- f"Tenant={ tenant_id } failed plaintext object normalize for id={ fr .file_id } : { e } "
630
+ f"Tenant={ tenant_id } failed plaintext object normalize for "
631
+ f"id={ fr .file_id } - { e .__class__ .__name__ } "
631
632
)
632
633
633
634
if normalized :
@@ -641,7 +642,7 @@ def user_file_docid_migration_task(self: Task, *, tenant_id: str) -> bool:
641
642
)
642
643
except Exception :
643
644
task_logger .exception (
644
- f"user_file_docid_migration_task encountered an error during plaintext normalization for tenant={ tenant_id } "
645
+ f"user_file_docid_migration_task - Error during plaintext normalization for tenant={ tenant_id } "
645
646
)
646
647
647
648
task_logger .info (
@@ -650,6 +651,6 @@ def user_file_docid_migration_task(self: Task, *, tenant_id: str) -> bool:
650
651
return True
651
652
except Exception :
652
653
task_logger .exception (
653
- f"user_file_docid_migration_task encountered an error for tenant={ tenant_id } "
654
+ f"user_file_docid_migration_task - Error during execution for tenant={ tenant_id } "
654
655
)
655
656
return False
0 commit comments