alexjustesen / speedtest-tracker

Speedtest Tracker is a self-hosted internet performance tracking application that runs speedtest checks against Ookla's Speedtest service.
https://speedtest-tracker.dev/
MIT License
2.77k stars 106 forks source link

Add retry capabilities to unsuccessful tests. #528

Open mendoncart opened 1 year ago

mendoncart commented 1 year ago

Is your feature request related to a problem? Please describe. Yes, It's meant to bypass the problem of Configuration - Could not retrieve or read configuration (ConfigurationError) For what I understood reading the issues #507, #389, #355 and #343, it seems that the container can't access the internet for some reason, and the test fails...

Describe the solution you'd like Create RETRIES a field on the Gerneral Settings page, like the image bellow. This will be the number of retries the speedtest will make when not getting a successful result. So, if the test isn't successful, it will be repeated X times before it gets the unsuccessful tag. Maybe also add another field "Time between retries", for the user to specify a interval for the system to execute the retry.

New configuration page example: image

Additional context Sometimes the test fails. If there was some retry aspect, to repeat the test after a couple of seconds, maybe this problem would vanish.

There's a lot of successful tests, and 3 unsuccessful.

image

Details:

image

hafx commented 1 year ago

Hi, I agree with you, it can be a good feature.

I have also unsuccessful tests. {"type":"log","timestamp":"2023-06-25T09:57:30Z","message":"Path used: /root/.config/ookla/speedtest-cli.json","level":"error"}

I change the nameserver (/etc/resolv.conf) in the container by my own local dns. But it doesn't seem to be better.

image