# HG changeset patch # User amazy # Date 1553594906 -3600 # Node ID 15823481cf8f322e5e01d22e994695f4782fc4c8 # Parent 1af668e84f4d3c7a05a9bfe5078e91c99f901889 added Jobs Lua callback diff -r 1af668e84f4d -r 15823481cf8f Sphinx/source/users/lua.rst --- a/Sphinx/source/users/lua.rst Thu Mar 07 12:41:10 2019 +0100 +++ b/Sphinx/source/users/lua.rst Tue Mar 26 11:08:26 2019 +0100 @@ -74,6 +74,16 @@ httpHeaders)``: Invoked to known whether a REST request should be accepted. :ref:`See this section `. +Some **job-related events** allow to react to :ref:`job ` completion/failure: + +* ``function OnJobSubmitted(jobId)``: + Invoked when a new job has been submitted. Note that this does not + mean the the job execution has started. +* ``function OnJobFailure(jobId)``: + Invoked when a job has failed. +* ``function OnJobSuccess(jobId)``: + Invoked when a job has completed successfully. + Some **DICOM-related events** allow to react to the reception of new medical images: