comparison Sphinx/source/users/advanced-rest.rst @ 671:bc8fa2bf4cf7

asynchronous c-move
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 May 2021 14:11:39 +0200
parents b3e75cef601d
children 8bda16db46cf
comparison
equal deleted inserted replaced
670:f32934bdad14 671:bc8fa2bf4cf7
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
137 ``Failure``. 137 ``Failure``.
138
139 Note that the `integration tests of Orthanc
140 <https://hg.orthanc-server.com/orthanc-tests/file/Orthanc-1.9.2/Tests/Toolbox.py>`__
141 give an example about how to monitor a job in Python using the REST
142 API (cf. function ``MonitorJob()``).
138 143
139 144
140 .. _jobs-controlling: 145 .. _jobs-controlling:
141 146
142 Interacting with jobs 147 Interacting with jobs