API call for current Orthanc processing

Is there an API call that shows whether or not Orthanc is currently “doing” anything? I appreciate that there are “jobs” calls but I’m not sure (?) if those would include the following, which is really what I’m after:

  1. Is Orthanc currently receiving anything through
    1. a DICOM network connection?
    2. an API connection
  2. Is Orthanc currently sending anything (through either connection)
  3. Is there a call that would definitely tell me if it would be safe to stop/restart the Orthanc service?

Hi Dave,

There’s no Rest route to know if Orthanc is “doing something”.

Note that all jobs (e.g. outgoing transfers) should restart if interrupted by a shutdown.

For the incoming transfers, there’s not much you can do.

You can still use the “/tools/shutdown” route. Each HTTP and DICOM thread will finish its current task but that does not mean the DICOM/HTTP client has completed its tasks (e.g if sending instances one by one).

So usually, I try to make my scripts/workflows resilient to unexpected interruptions…

HTH,

Alain,

Alain,
Just getting the confirmation is enough for me right now sir, so I appreciate the feedback. Thanks

Dave