Monitoring and managing Orthanc jobs

Orthanc runs many tasks in the background, such as storage moves, transfers and processing. This page explains how to watch that job queue, choose synchronous or asynchronous calls, and alert on the right job metrics.

On this page

Why Orthanc job monitoring matters for Monitoring Orthanc jobs in production

Teams need a monitoring plan for Orthanc jobs as soon as studies are processed in the background, not only when something breaks. Orthanc receives images from modalities and peers, forwards them, applies routing and runs other work through an internal jobs queue. Each job is a unit of background work, such as a transfer to another node, a forward to a remote peer, a store or a maintenance task. When these units pile up, an imaging team may see delayed studies at reading workstations long before any error appears in a log. Plan monitoring before go-live, again after a backlog or a failed transfer, and whenever several instances share one database, because then a stuck job on one node can affect how work is distributed across the cluster.

The point of the plan is to know three things at any moment: how much work is waiting, how much is running, and how much has failed and needs a decision. Ask the team who owns each queue, which jobs carry patient-critical traffic such as forwards to a reading site, and what backlog size or age should trigger a page versus a ticket. Confirm the exact job states, the synchronous and asynchronous call behavior, the priority and pause controls, and the retry and persistence options against the Orthanc Book for the release you run, since this page does not restate them. The Orthanc Book scalability FAQ is a useful starting point for how large deployments are described. Also confirm which metric names your build exposes before writing any alert rule, because names and availability can change between releases such as 1.13.0.

How a job moves from request to completion

The diagram starts with a client, such as a modality, viewer, script or peer, sending a REST or DICOM request. A synchronous call is held until the work finishes, while an asynchronous call returns a job identifier straight away and the job waits in the queue for a worker. Results and failures are recorded, saved jobs persist across restarts, and a metrics endpoint feeds your monitoring system. Operators can pause, retry or delete jobs, but exact behavior depends on your Orthanc version, so confirm it in your release notes before you write alert rules.

Request path for an Orthanc job, from call to recorded outcome and alerting.

Which job settings fit which workload

This table compares the main choices for Orthanc background work: synchronous and asynchronous calls, priority, saved or transient jobs, pausing and retrying, and metric alerts. Read each row for when the option fits, what it costs in client waiting or operator effort, and the item to confirm in the Orthanc Book for your installed version before you rely on it.

SettingWhen it fitsWhat it costsWhat to confirm in the Orthanc Book
Synchronous REST callShort, interactive requests where the caller needs the result before continuing, such as a small study move or a single lookupThe client holds the connection open until the work finishes, so long transfers tie up client threads and can time outConfirm the REST routes that accept a synchronous request and any timeout behavior in the REST API section for your version
Asynchronous call with pollingLarge or unpredictable transfers, such as bulk moves between sites, where the caller can check back laterThe caller must poll job status and handle failures itself, and someone must watch for stuck or failed jobsConfirm which routes return a job identifier when called asynchronously and how the job status endpoint reports progress
Job priorityMixed workloads where urgent clinical moves should run ahead of bulk archive or mirroring workLow-priority jobs can wait longer during busy periods, so backlog growth must be watched and explained to usersConfirm how priority is set on each request and whether the setting applies to every job type in your version
Saved jobsLong-running work that must survive a restart of the Orthanc instance, such as large transfers or scheduled migrationsSaved jobs write state to the database and consume storage and some operator attention to clean up finished or failed entriesConfirm the saved-job configuration key, where job state is stored, and how a restart resumes or marks interrupted jobs
Transient jobsShort, repeatable work where losing progress on restart is acceptable and the caller can simply resubmitWork in progress is lost on restart, so the caller or operator must detect and repeat itConfirm the default saved-job behavior for your version and how interrupted transient jobs appear in the job list
Pausing and retryingMaintenance windows, network outages to a peer, or temporary storage faults where work should resume rather than failPaused queues hold up dependent work, and retries can add load to a struggling peer or storage back endConfirm the pause and resume routes, the retry settings for each job type, and whether retries are automatic or manual
Job metric alertsTeams that need to know about a growing backlog, failed jobs or stalled queues before users noticeAlert rules need tuning to the site's normal volume, and noisy thresholds lead to ignored pagesConfirm the job-related metrics exposed by the Prometheus endpoint in your version and the exact metric names before writing rules

What happens to queued jobs when Orthanc restarts

Whether queued jobs survive a restart determines how much work a planned restart or an unplanned crash leaves for your team. When jobs are saved, the queue is persisted and processing resumes after Orthanc starts, so a long transfer or a batch of forwards continues without anyone resubmitting it. When jobs are not saved, anything queued or running at shutdown is lost, and operators must find the affected studies and send them again. The trade-off is that persistence adds write load to the index and can keep failing work in the queue across restarts, so each site should make this choice on purpose.

Long transfers to a peer, bulk forwards to a PACS and large imports are the jobs most exposed to a restart. Upgrades and planned maintenance make restarts routine, and a database upgrade that stops Orthanc partway through can leave jobs in a state nobody planned for. Before any maintenance window, count the queued jobs, identify which are long-running, and confirm that their destinations will be reachable and will accept retries. The Orthanc Book scalability FAQ describes how large archives change this workload, which helps you judge how big a backlog can grow.

Test the behavior before you depend on it. Copy the production database and storage to a staging environment, build a representative backlog by submitting the transfers and forwards you run in production, and restart Orthanc in the middle of that work. Record three lists: jobs that resume on their own, jobs that fail and whether they are retried, and jobs that need manual action such as resending a study or cancelling a duplicate. Confirm the persistence setting and its expected behavior in the configuration reference for your Orthanc version first, then repeat the test after each Orthanc or database plugin upgrade, since restart behavior can change between versions.

Which job signals to alert on first

Orthanc jobs fail quietly: a stuck queue or a paused batch rarely produces an error on screen. The cards below cover the signals that most often reveal a problem early, and each one points to the first thing to check. Exact metric names belong to the Prometheus metrics topic, so confirm them against your Orthanc build before writing any alert rule.

Queue depth growing over time

A queue that holds steady under normal load is healthy, but one that keeps climbing means jobs are arriving faster than Orthanc completes them. Look first at what is generating the work, such as a new modality, a routing rule that matches more studies than expected, or a forwarding peer that has slowed down. Then check whether the job workers are blocked on storage or database latency. Alert on the trend over a window you set, not on a single reading, because batch imports cause short, expected spikes.

Jobs in a failed state

Any failed job deserves a look, and a rising count deserves an alert. Failed jobs stay in the queue record, so they can be inspected and retried, but nothing retries them without operator action unless your configuration says so. Start by reading the error recorded on the job, then check whether the destination was reachable, whether the credentials or certificates still match, and whether the failure started right after a configuration change. Confirm the failed-job counter name in your build before you build the rule.

Age of the oldest waiting job

Queue depth alone can hide a problem: a short queue whose oldest entry has waited for hours points to a stalled worker or a job blocked behind a single slow destination. Measure the age of the oldest pending job and alert when it exceeds the delivery window your clinical or operational teams have agreed. Check whether the job is waiting on a resource, such as a lock or a peer that accepts only one association at a time, before restarting anything. Ask your Orthanc team which age metric your build exposes, since this signal depends on it.

Jobs paused and not resumed

Operators pause jobs during maintenance, a database upgrade or an investigation, and then forget to resume them. A paused queue looks calm on a dashboard, which is why this state needs its own alert. Alert when a job or queue stays paused beyond the maintenance window recorded in your change ticket. When you find one, confirm why it was paused before resuming, because resuming a backlog can flood a destination that was paused on purpose.

Retry storms against one destination

When one remote system rejects or times out, every job bound for it retries, and the retries can crowd out work for healthy destinations. Watch for a high rate of retries concentrated on a single peer, modality or DICOMweb endpoint. The usual causes are an expired certificate, a changed port, a full remote disk or a remote system that is restarting. Check the destination first, then consider pausing only that route so other sends continue. Ask your Orthanc team how retry limits and delays are configured in your version.

Jobs stop completing after an upgrade

A version change can alter how jobs are stored, scheduled or serialized, and a job that finished before an upgrade may stall or fail afterward. Compare the completion rate and the failed count before and after each upgrade, and keep the first hours after a change under closer watch. Check the release notes for the version you deployed, confirm the plugin versions match the core, and look for jobs that were saved under the old version. Record the baseline before every upgrade so a regression is easy to prove.

How to set up job monitoring step by step

This sequence takes a team from an inventory of Orthanc's background work to a tested alerting setup and a runbook for handling jobs. Each step ends with a check that confirms the setup works before it reaches production.

  1. Inventory the workflows that create jobs

    Start by listing every workflow that touches the Orthanc archive: modality store and retrieve traffic, DICOM or REST transfers to peers, scheduled exports, anonymization runs, and any scripts that call the REST API. For each one, record the client or system that triggers it, how often it runs, and whether a delay would affect clinical users or only background copies. The engineering lead and the imaging team should review the list together. The step is done when every workflow has an owner and a named trigger, and the list is stored with the runbook.

  2. Decide synchronous or asynchronous calls per client

    For each client in the inventory, decide whether it should wait for a job to finish (synchronous) or submit it and check back later (asynchronous). Clients that need an immediate answer, such as a viewer or a script that must confirm a write, usually need synchronous behavior. Bulk transfers and maintenance tasks usually fit asynchronous calls. Confirm the exact request options with the Orthanc REST API documentation for the version you run, since parameters differ between releases. The step is done when each client has a written decision and the integration team has tested one request of each type.

  3. Enable the metrics endpoint in a non-production copy

    Turn on the Prometheus metrics endpoint in a staging or test copy of Orthanc that holds representative data and matches the production version. Restrict access to the scraping server, because the endpoint should not be reachable from general users. Confirm which job-related metrics the build exposes before writing any alert rules, and record the metric names in the runbook. The step is done when a Prometheus instance scrapes the test server successfully and the job metrics appear with values that change as work runs.

  4. Set queue and age thresholds with operations

    Meet with the operations team and the imaging owners to agree what a healthy queue looks like for each workflow. Define a queue depth threshold, an age threshold for the oldest pending job, and a failure count threshold, and state which workflows are allowed to build a backlog overnight. Use the staging measurements from the previous step as the starting point, and revise the values after the first weeks of production use. The step is done when the thresholds are written down with the reason for each one and signed off by both teams.

  5. Configure alert routing and a named owner

    Create the alert rules from the agreed thresholds and route them to a channel that someone watches during working hours. Name one owner for the Orthanc job alerts and a backup owner, and write down what each alert means and who acts on it. Separate alerts that need immediate action, such as a stalled queue on a clinical workflow, from informational alerts that can wait for review. The step is done when a test alert reaches the named owner and the owner confirms they can read the alert text and find the runbook entry.

  6. Run a controlled test with a backlog and a forced failure

    In the test environment, create a backlog by sending a batch of transfer or export jobs faster than the server processes them, then watch the queue metrics and confirm the age and depth alerts fire at the agreed thresholds. Next, force a failure, for example by pointing one transfer at an unreachable destination, and confirm the failure appears in the metrics and the logs and triggers the right alert. Record the time each alert took to fire and what evidence the owner needed. This test is illustrative of the method; the batch size should reflect your own volumes. The step is done when both scenarios produce the expected alerts and the team has noted any gaps.

  7. Document the runbook for pausing, retrying and deleting jobs

    Write the runbook that the on-call owner will follow. Cover how to inspect the queue through the REST API, how to pause and resume job processing, how to retry or delete a failed job, and how to confirm that saved jobs resume correctly after a restart. Include the commands or API calls exactly as tested in the previous step, and state which actions need approval from the imaging or clinical team before running. Review the runbook against the Orthanc version in production, because job behavior and endpoints can change between releases. The step is done when an engineer who did not write the runbook completes a pause, retry and delete on the test server by following it alone.

Protecting the job interface and its data

The jobs interface is part of the same REST API that serves the rest of Orthanc, so its protection depends on how the whole server is exposed. The cards below cover who can act on jobs, how remote access is secured, which routes stay closed, and where job data containing patient identifiers is kept.

Limit who can act on jobs

Listing, pausing, retrying and deleting jobs all run through the REST API, so any user who can reach it can change the queue. Map each role to the jobs actions it actually needs, and confirm in your deployment which users can call the job routes. Test this with a non-administrator account, not only with the administrator.

Orthanc security FAQ

Require authentication for remote access

By default Orthanc accepts HTTP connections only from localhost. If you enable RemoteAccessAllowed, the security FAQ says AuthenticationEnabled should be true with users defined in RegisteredUsers. Confirm that an unauthenticated request to the jobs routes is refused on every network path you have opened.

Put HTTPS and a reverse proxy in front

The project recommends HTTPS and a reverse proxy when Orthanc is reachable from the Internet. Check that the proxy terminates TLS, forwards only the routes you intend to expose, and that the Orthanc port is not reachable directly from outside the network. Confirm the proxy's access logs capture job-related calls.

Keep script and export routes disabled

The security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled. Jobs can be created by these and other routes, so confirm that no job can be submitted through a path you have not reviewed.

Protect metrics endpoints

Job and disk metrics reveal study volumes, queue depth and failure patterns, which are useful to an attacker mapping your archive. Confirm that the Prometheus endpoint is reachable only from your monitoring network or behind authentication. Decide who may view dashboards that show job activity.

Store job payloads under control

Saved jobs and their payloads can reference study identifiers and patient details, and they persist across restarts. Confirm where the database and any job-related files are stored, who can read them, how they are backed up and how long copies are retained. Treat backups of the job tables with the same controls as the archive itself.

Job management limits by deployment shape

A single Orthanc instance on the built-in SQLite index is the simplest shape to observe. One process holds the index, runs the jobs queue and writes the DICOM files, so a job's state can be traced in one place. The Orthanc scalability FAQ says the SQLite index should be replaced by an enterprise database engine once the archive holds several hundred thousand DICOM instances, so this shape fits archives well below that point.

  • Visibility: Check the jobs list through the REST API or Orthanc Explorer 2 on the same host, since there is no second node to compare against.
  • Restart behavior: Confirm in the documentation for your version whether queued and running jobs resume after a restart, then test this on a copy of the archive before relying on it.
  • Alerting: Alert on failed or stuck job counts and on process liveness, because one process failure stops all background work.
  • Growth trigger: Track the instance count against the several-hundred-thousand threshold so the move to a database engine is planned rather than forced by a slowdown.

Confirm the current instance count, whether the index and DICOM files share one disk, and whether any scripts poll the jobs endpoint.

Questions buyers ask about Orthanc job monitoring

How much effort does it take to set up Orthanc job monitoring?

Effort depends mainly on how many Orthanc instances run, how many workflows depend on background jobs, and how much alerting already exists. A single instance with an existing Prometheus and alerting stack needs a much smaller change than several instances feeding a clinical workflow with no monitoring today. The work usually covers reviewing the jobs queue behavior, choosing which job states and failures to alert on, wiring the metrics into your monitoring tools, and writing the response steps for on-call staff. Ask any partner to break the effort into these parts in the written scope so you can see what is included and what you must provide.

Can our internal team set up Orthanc job monitoring without outside help?

Yes, many teams can, provided they have engineers who know Orthanc's REST API, its job model and the monitoring stack they already run. The Orthanc Book documents the jobs and Prometheus-related behavior, so a capable team can start there. Outside help tends to add value in three places: testing how jobs behave under your real study volumes, agreeing alert thresholds that clinical staff accept, and documenting recovery steps so the process does not depend on one engineer. Confirm your team's Orthanc experience and on-call coverage before deciding.

What does our organization need to provide for this work?

The work goes faster when you name owners before it starts. Typically you need:

  • A named technical owner who can approve configuration changes and alert rules
  • A named imaging workflow owner who can describe which transfers, routing and modality jobs matter most
  • A staging copy of the Orthanc deployment, with representative data volumes where possible
  • Access to your alerting tools, dashboards and on-call rota

Also ask for a description of how studies arrive and leave, because job failures often show up first in those workflows.

How long does Orthanc job monitoring take to set up?

Duration is driven by the number of instances, the complexity of your transfer and routing workflows, how many systems must be integrated with alerting, and how quickly your owners can review results. Testing against a staging copy with realistic job volumes usually takes longer than the configuration itself because failure modes must be reproduced. No duration is given here because it depends on your environment. Ask for a timeline tied to specific deliverables in the written scope, along with the dependencies on your side.

What ongoing work follows after job monitoring goes live?

Some work recurs after go-live. Alert thresholds usually need tuning as study volumes grow and workflows change, so expect periodic reviews of noisy or missed alerts. Orthanc upgrades can change job behavior or metrics, so each upgrade should include a check of the alert rules and a test of recovery steps. Runbooks also need regular review when staff, modalities or sites change. Ask any partner whether these reviews are included in the fixed scope or offered as a retainer, and what each review covers.

How is fixed-scope work quoted for Orthanc job monitoring?

DeployOpen agrees scope, deliverables and timelines in writing before work starts, and the quote follows from that written scope. DeployOpen does not publish a price list. To compare quotes, ask each provider to list the instances covered, the metrics and alerts configured, the test cases run in staging, the documents delivered, the handover sessions, and the items you must supply. Items left out of the scope should be named so they are not assumed. Ongoing support is handled separately as a retainer.

Are Orthanc Team SRL's paid support hours relevant to job monitoring?

They may be, depending on how you want to work with the Orthanc project's commercial arm. Orthanc Team SRL sells deployment, configuration and development services, and it offers pre-paid dedicated support hours valid for 12 months, quoted on request. There is no paid edition of Orthanc, so the core software and its plugins are obtained the same way regardless of support. Ask Orthanc Team SRL for a quote if you want its hours for questions about jobs behavior, and compare that with DeployOpen's written scope if you need the monitoring work built and handed over.

How DeployOpen scopes and supports Orthanc job monitoring

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, and job monitoring for Orthanc is handled the same way. We start from the jobs your archive actually runs, agree the monitoring and handling rules in writing, and hand over a setup your team can operate.

How we scope

  • We list the Orthanc job types your workflows create, such as transfers, modality sends and background processing, before defining any monitoring.
  • The written scope names which job states, queues and alerts are in and which Orthanc deployment and hosts they apply to.
  • Engagements are fixed-scope, so deliverables, responsibilities and timelines are agreed in writing before work starts.

How we build

  • We configure the Orthanc metrics endpoint and collection in your monitoring stack, using the job and REST metrics it exposes.
  • We set up alert rules for queue backlog and failed or stuck jobs, and test that each alert fires on a controlled condition.
  • We define retry, pause and priority handling for your workflows and test them against your modalities and peers in a non-production environment.

How we hand over

  • You receive documentation of the job model, alert thresholds, runbooks for pausing and retrying jobs, and the reasons behind each setting.
  • We walk your operations and imaging IT staff through dashboards, alert responses and how saved jobs behave across restarts.
  • Handover records what was changed in each Orthanc instance so later upgrades and reviews can trace each monitoring decision.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Support covers reviewing alert noise, adjusting thresholds as study volumes change and retesting after Orthanc or plugin upgrades.
  • Pre-paid dedicated support hours for Orthanc itself are sold by Orthanc Team SRL, which is separate from DeployOpen's own retainers.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.