pepper icon indicating copy to clipboard operation
pepper copied to clipboard

--timeout parameter should be an actual limit

Open eplodn opened this issue 6 years ago • 0 comments

$ pepper --timeout=1 '*' cmd.run 'sleep infinity'

This never returns, while the behaviour I would expect is that it would return after 1 second and report incomplete state.

From the help:

  Pepper ``salt`` Options:
    Mimic the ``salt`` CLI

    -t TIMEOUT, --timeout=TIMEOUT
                         Specify wait time (in seconds) before returning
                        control to the shell

My actual issue is with running a script on a lot of minions where some of them can actually disconnect before completion. I would like to be able to recover and continue, but my pepper call is getting stuck forever.

eplodn avatar Aug 01 '19 10:08 eplodn