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¶
lso.tasks.run_executable_proc_task
run_executable_proc_task(job_id: str, executable_path: str, args: list[str], callback: str | None) -> None
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.
Args: job_id (str): Identifier of the job being executed. executable_path (str): Path to the executable to be executed. args (list[str]): Arguments that are passed to the executable. callback (str, optional): Callback URL for status update.
Raises: CallbackFailedError: If the callback to the external system has failed.
Source code in .venv/lib/python3.12/site-packages/lso/tasks.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |