comparison Sphinx/source/users/advanced-rest.rst @ 253:a64197133114

Orthanc 1.5.7
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Jun 2019 08:11:01 +0200
parents 972900443cf8
children f9e7036d81d0
comparison
equal deleted inserted replaced
252:eaad8233e474 253:a64197133114
124 * ``Success``: The job has finished with success. 124 * ``Success``: The job has finished with success.
125 * ``Failure``: The job has finished with failure. Check out the 125 * ``Failure``: The job has finished with failure. Check out the
126 ``ErrorCode`` and ``ErrorDescription`` fields for more information. 126 ``ErrorCode`` and ``ErrorDescription`` fields for more information.
127 * ``Paused``: The job has been paused. 127 * ``Paused``: The job has been paused.
128 * ``Retry``: The job has failed internally, and has been scheduled for 128 * ``Retry``: The job has failed internally, and has been scheduled for
129 re-submission after a delay. As of Orthanc 1.5.6, this feature is not 129 re-submission after a delay. As of Orthanc 1.5.7, this feature is not
130 used by any type of job. 130 used by any type of job.
131 131
132 In order to wait for the end of an asynchronous call, the caller will 132 In order to wait for the end of an asynchronous call, the caller will
133 typically have to poll the ``/jobs/...` URI (i.e. make periodic 133 typically have to poll the ``/jobs/...` URI (i.e. make periodic
134 calls), waiting for the ``State`` field to become ``Success`` or 134 calls), waiting for the ``State`` field to become ``Success`` or
144 * Pause the job by POST-ing to ``/jobs/.../pause``. 144 * Pause the job by POST-ing to ``/jobs/.../pause``.
145 * Resume a job in ``Paused`` state by POST-ing to ``/jobs/.../resume``. 145 * Resume a job in ``Paused`` state by POST-ing to ``/jobs/.../resume``.
146 * Retry a job in ``Failed`` state by POST-ing to ``/jobs/.../resubmit``. 146 * Retry a job in ``Failed`` state by POST-ing to ``/jobs/.../resubmit``.
147 147
148 The related state machine is depicted in the `implementation notes 148 The related state machine is depicted in the `implementation notes
149 <https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-1.5.6/Resources/ImplementationNotes/JobsEngineStates.pdf>`__. 149 <https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-1.5.7/Resources/ImplementationNotes/JobsEngineStates.pdf>`__.
150 150
151 151
152 152
153 153
154 .. _pdf: 154 .. _pdf: