This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
report-ready script stuck (need to implement timeout in wget, curl and ruby) #237
Labels
Milestone
Hi,
I've just realized that the
net-99-report-ready
script does not contains atimeout
value in itswget
and/orcurl
command, making the script hang for quite some time if there's some network connectivity issue with the Onegate Endpoint.Currently the script will use the default timeout of
wget
, which is 900 seconds (15 minutes), or 2 minutes forcurl
(depending on the operating system).We should probably implement a timeout in the
wget
andcurl
command of the scriptnet-99-report-ready
:It also looks like the ruby scripts that are reporting the ready state are stuck :
I have updated the
net-99-report-ready
script to implement timeouts on thecurl
andwget
commands, and that's preventing thenet-99-report-ready
script to remain stuck on thewget
orcurl
step, but it remains stuck on the ruby step.Parameter for
curl
:--max-time 5
Parameter for
wget
:--timeout=5
Here is the overview of using the timeout parameter with
curl
and/orwget
(as you can see it's giving up quite quickly) :Also, I believe that the current script is always going to return an exit code of 0, so maybe we should update the logic to show exit codes different than 0 in case of errors ?
Thomas
The text was updated successfully, but these errors were encountered: