When using an external program to run a task as described here, the execution might fail but the status of the external task in the QMC might not get updated accordingly.
In order to handle the failed execution, it's needed to send a request that updates the status in the QMC.
Here is an example of how to update the status in the QMC:
Optional step
If you want to change a specific execution you can use the following code to retrieve the ID needed to change the task status