Commando retry?
I found the error reporting but I do not see a retry mechanism built into Commando... Is that correct or am I just missing something?
Thanks!
Hi! There is not currently a retry feature in Commando. Do you have a use-case that you can illustrate that might help us come up with an implementation? On Sat, Aug 22, 2015 at 07:03 etern4ever [email protected] wrote:
I found the error reporting but I do not see a retry mechanism built into Commando... Is that correct or am I just missing something?
Thanks!
— Reply to this email directly or view it on GitHub https://github.com/trigger/trigger/issues/226.
I am working with a very large number of devices (over 600) and sometimes on first attempt my scripts do not connect to one of them. But if I rerun the script, it connects fine. A simple try to connect 3 times then give up (reporting errors) is what I am looking for.
@etern4ever Thanks for that. In the meantime, have you tried upping timeout? Commando defaults to 30 seconds, but you can pass timeout=n to the constructor at runtime.
That helps a little.. But there are older devices I have that just do not response on the first connection attempt for some reason (from time to time).
Thanks again.