We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7f7e3 commit 02bee88Copy full SHA for 02bee88
controller/transfer/cognition/minio_upload.py
@@ -20,6 +20,11 @@ def handle_cognition_file_upload(path_parts: List[str]):
20
or file_reference.state == enums.FileCachingState.RUNNING.value
21
or file_reference.state == enums.FileCachingState.COMPLETED.value
22
):
23
+ # file_reference is None or already processed in queue
24
+ print("File reference duplication error, file is already processed", flush=True)
25
+ if file_reference:
26
+ print(f"File reference id: {str(file_reference.id)}", flush=True)
27
+ print(f"File name: {file_reference.original_file_name}", flush=True)
28
return
29
file_reference.state = enums.FileCachingState.COMPLETED.value
30
general.commit()
0 commit comments