piston icon indicating copy to clipboard operation
piston copied to clipboard

Is there a way to know that the submission failed due to Timeout

Open gouseferoz opened this issue 1 year ago • 4 comments

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.

gouseferoz avatar Jul 26 '24 11:07 gouseferoz

The signal field of the response will be SIGKILL if the execution is terminated due to a timeout, otherwise it is null.

livinNector avatar Jul 27 '24 19:07 livinNector

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.

smark-1 avatar Sep 13 '24 00:09 smark-1

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.

Brikaa avatar Sep 13 '24 13:09 Brikaa

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".

adityasharmawork avatar Oct 25 '25 10:10 adityasharmawork