trigger icon indicating copy to clipboard operation
trigger copied to clipboard

Commando retry?

Open jthunt opened this issue 10 years ago • 4 comments

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!

jthunt avatar Aug 22 '15 14:08 jthunt

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.

jathanism avatar Aug 22 '15 19:08 jathanism

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.

jthunt avatar Aug 22 '15 21:08 jthunt

@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.

jathanism avatar Sep 15 '15 16:09 jathanism

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.

jthunt avatar Sep 17 '15 15:09 jthunt