Skip to content

Callbacks

If the callback_url was set when making the original request, LSO will return the output of the executable to this URL.

Code Documentation

Celery task to run an arbitrary executable and notify via callback.

Executes the executable with the provided arguments and posts back the result if a callback URL is provided.

Parameters:

Name Type Description Default

job_id

str

Identifier of the job being executed.

required

executable_path

str

Path to the executable to be executed.

required

args

list[str]

Arguments that are passed to the executable.

required

callback

str

Callback URL for status update.

required

Raises:

Type Description
CallbackFailedError

If the callback to the external system has failed.