changeset 833:24a2ce71a161

job priority
author Alain Mazy <am@osimis.io>
date Fri, 22 Apr 2022 09:03:26 +0200
parents 28fbceb66b0b
children 0b35dcbb127c
files Sphinx/source/users/advanced-rest.rst
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/advanced-rest.rst	Thu Apr 14 10:13:16 2022 +0200
+++ b/Sphinx/source/users/advanced-rest.rst	Fri Apr 22 09:03:26 2022 +0200
@@ -36,8 +36,6 @@
 
 Note that the queue of pending jobs has no size limit.
 
-
-
 .. _jobs-synchronicity:
 
 Synchronous vs. asynchronous calls
@@ -146,6 +144,18 @@
 API (cf. function ``MonitorJob()``).
 
 
+.. _jobs-priority:
+
+Jobs priority
+^^^^^^^^^^^^^
+
+When executing jobs, Orthanc will pick the jobs with the highest ``Priority`` 
+from the pending job list. An integer value is a valid ``Priority``.  You may 
+also use negative number to lower the priority below the default one (``0``).
+
+Pending jobs are not ordered in the API response but they are picked up in the right order.
+
+
 .. _jobs-controlling:
 
 Interacting with jobs