Is there a way to know that the submission failed due to Timeout
I was wondering if there is a way to know that the execution has stopped due to the timeout? I am not sure if it already exists and it would be helpful if we have one.
The signal field of the response will be SIGKILL if the execution is terminated due to a timeout, otherwise it is null.
In the latest version it doesn't appear to be documented but I found that when the run.status = "TO" the execution has been terminated because of timeout and if it is "XX" it is because of exceeding the output limit.
According to the documentation of the latest version, XX is used for reporting internal errors so it should not be relied on for determining if the output limits were exceeded. I have made a PR that sets an appropriate status for exceeding the output limits, and also reports SIGKILL when the time-limit or the output limit is exceeded to maintain backward compatibility.
If you want to see a practical example of this, just explicitly set a very less time in the request you are sending in compile time and runtime options, as a result in the response, you will see the "SIGNAL" key set to status code "SIGKILL".