exec()
's timeout
doesn't result in TimeoutError
on busybox
images
#15
Labels
bug
Something isn't working
It seems that
busybox
has a simpler version oftimeout
which behaves differently.This exits with exit code 143 (128 + 15 [SIGTERM]) rather than 124.
Note: the timeout does still kick in, but doesn't manifest itself as a raised
TimeoutError
, rather just anExecResult
with success false.We could recognise 143 in addition to 128 as signalling a timeout error e.g.
but this would incorrectly classify some commands which are killed in ways unrelated to timeout errors as
TimeoutErrors
. Here is an example of an agent command accidentally killing itself - becausepkill -f python3
matches itself (because the command was/bin/bash -c "<the agent code which includes "python3" as a string>
).The text was updated successfully, but these errors were encountered: