comparison Sphinx/source/users/lua.rst @ 232:15823481cf8f

added Jobs Lua callback
author amazy
date Tue, 26 Mar 2019 11:08:26 +0100
parents 6e0a0b57697b
children f58c0784453d
comparison
equal deleted inserted replaced
231:1af668e84f4d 232:15823481cf8f
71 accepted. :ref:`See this section <lua-filter-dicom>`. The ``origin`` 71 accepted. :ref:`See this section <lua-filter-dicom>`. The ``origin``
72 parameter is :ref:`documented separately <lua-origin>`. 72 parameter is :ref:`documented separately <lua-origin>`.
73 * ``function IncomingHttpRequestFilter(method, uri, ip, username, 73 * ``function IncomingHttpRequestFilter(method, uri, ip, username,
74 httpHeaders)``: Invoked to known whether a REST request should be 74 httpHeaders)``: Invoked to known whether a REST request should be
75 accepted. :ref:`See this section <lua-filter-rest>`. 75 accepted. :ref:`See this section <lua-filter-rest>`.
76
77 Some **job-related events** allow to react to :ref:`job <jobs>` completion/failure:
78
79 * ``function OnJobSubmitted(jobId)``:
80 Invoked when a new job has been submitted. Note that this does not
81 mean the the job execution has started.
82 * ``function OnJobFailure(jobId)``:
83 Invoked when a job has failed.
84 * ``function OnJobSuccess(jobId)``:
85 Invoked when a job has completed successfully.
76 86
77 Some **DICOM-related events** allow to react to the reception of 87 Some **DICOM-related events** allow to react to the reception of
78 new medical images: 88 new medical images:
79 89
80 * ``function OnStoredInstance(instanceId, tags, metadata, origin)``: 90 * ``function OnStoredInstance(instanceId, tags, metadata, origin)``: