Hi all,
I’m currently experiencing weird behavior from orthanc.
Working context:
I have several Python scripts which are attaching to Orthanc Python Plugin.
-
The first python script is to continuously query/retrieve DICOMs at Study level from other PACS.
-
The second one is to manipulate the PixelData of retrieved studies’ instances; after manipulating, I create new instances from the manipulated with new UID then upload them to my orthanc.
-
Each python scripts create their own threads (https://docs.python.org/3/library/threading.html)
Error occurs:
After days of errors tracing, I realized the error occured if I make a request to upload new instance (POST /instances) while a (may be time-consuming) running retrieve job existing.
Workaround:
Currently, I have to wait for all the running job to be finished before sending new request to upload.
Best regards