comparison Sphinx/source/users/advanced-rest.rst @ 513:f22b3743fd3f

Orthanc 1.7.4
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 18 Sep 2020 15:18:40 +0200
parents 933e28b6a64d
children 416581db306e
comparison
equal deleted inserted replaced
512:be8b638f3f46 513:f22b3743fd3f
126 * ``Success``: The job has finished with success. 126 * ``Success``: The job has finished with success.
127 * ``Failure``: The job has finished with failure. Check out the 127 * ``Failure``: The job has finished with failure. Check out the
128 ``ErrorCode`` and ``ErrorDescription`` fields for more information. 128 ``ErrorCode`` and ``ErrorDescription`` fields for more information.
129 * ``Paused``: The job has been paused. 129 * ``Paused``: The job has been paused.
130 * ``Retry``: The job has failed internally, and has been scheduled for 130 * ``Retry``: The job has failed internally, and has been scheduled for
131 re-submission after a delay. As of Orthanc 1.7.3, this feature is not 131 re-submission after a delay. As of Orthanc 1.7.4, this feature is not
132 used by any type of job. 132 used by any type of job.
133 133
134 In order to wait for the end of an asynchronous call, the caller will 134 In order to wait for the end of an asynchronous call, the caller will
135 typically have to poll the ``/jobs/...` URI (i.e. make periodic 135 typically have to poll the ``/jobs/...` URI (i.e. make periodic
136 calls), waiting for the ``State`` field to become ``Success`` or 136 calls), waiting for the ``State`` field to become ``Success`` or
191 $ curl http://localhost:8042/jobs/82cc02d1-03fe-41f9-be46-a308d16ea94a/archive > a.zip 191 $ curl http://localhost:8042/jobs/82cc02d1-03fe-41f9-be46-a308d16ea94a/archive > a.zip
192 192
193 Note how we retrieve the content of the archive by accessing the 193 Note how we retrieve the content of the archive by accessing the
194 ``archive`` output of the job (check out the virtual method 194 ``archive`` output of the job (check out the virtual method
195 ``IJob::GetOutput()`` from the `source code 195 ``IJob::GetOutput()`` from the `source code
196 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.7.3/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp>`__ 196 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.7.4/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp>`__
197 of Orthanc). 197 of Orthanc).
198 198
199 As of Orthanc 1.7.3, only the creation of a ZIP or a DICOMDIR archive 199 As of Orthanc 1.7.4, only the creation of a ZIP or a DICOMDIR archive
200 produces such an "output". 200 produces such an "output".
201 201
202 202
203 .. _pdf: 203 .. _pdf:
204 204