I’d like to see if there is a way to access the jobs queue in Orthanc, mainly for 2 functions:
- The ability to see how many jobs are in the Orthanc Queue
- The ability to see what each job is, ie a send or receive or whatever, and if possible some identifier of what study/series/image is being processed by the job.
It doesn’t look like the REST API has anything like this - is it possible with a plugin? Is there any documentation I’ve missed that would point me in the right direction?
I’ve also thought about accessing the database to read the jobs but that is specifically recommended against.
Brian
Hi Brian,
Unfortunately, there’s indeed no way to retrieve the job list through the REST API or even through direct access to the database (jobs are actually not persisted to the DB → in case of reboot of Orthanc, the job queue is reset).
You would actually have to maintain your own job queue in another db or app next to Orthanc.
I think this might be in the roadmap for the Orthanc Explorer 2 projects from students of ULiège (https://groups.google.com/forum/#!topic/orthanc-users/oOyKTmfs-J0). They are currently in an exam period but should get back to work soon. It might be good if you suggest them the feature.
The Orthanc Explorer 2 plugin will include its own additional DB and could therefore include this kind of information.