SAFEHR-data / PIXL

PIXL Image eXtraction Laboratory
Apache License 2.0
8 stars 0 forks source link

Allow for concurrent orthanc-anon processing #524

Open stefpiatek opened 1 week ago

stefpiatek commented 1 week ago

What happened?

Relevant log output (optional)

No response

What did you expect? (optional)

p-j-smith commented 1 week ago

523 moved the processing in orthanc-anon into background threads using a ThreadPoolExecutor with the number of workers set to PIXL_MAX_MESSAGES_IN_FLIGHT. So hopefully we're not blocking the main thread anymore, and the ThreadPoolExecutor will handle the queuing to ensure only 5 studies are de-identified at any time.

But let's leave the issue open in case we're still having these problems.