janiko71 / aws-inventory

Python script for AWS resources inventory (cheaper than AWS Config)
GNU General Public License v3.0
164 stars 64 forks source link

Script hangs when Internet connection is unstable #15

Closed davinerd closed 2 weeks ago

davinerd commented 6 years ago

When Internet connection is unstable, threads wait forever due to the missing timeout in the underline threading's acquire call (I suppose).

Specifying a timeout will ensure the script to ends at some point, writing the information gathered so far.

janiko71 commented 5 years ago

Hi, thank you for your comment. I understand your point, but adding a timeout can be a bit tricky even if the script supports restarts. However, I will take a look.

janiko71 commented 2 weeks ago

The script SHOULD NOT be executed with a bad or unstable network connection. There's a bunch of AWS API calls.