pepper icon indicating copy to clipboard operation
pepper copied to clipboard

improve timeout handling

Open mattp- opened this issue 6 years ago • 5 comments

the timeout kwarg previously was only being used for polling timeout. we can also pass it as a low kwarg and use it for urllib connection timeout as well.

mattp- avatar Jul 30 '19 18:07 mattp-

Will this solve #198 ?

eplodn avatar Aug 01 '19 11:08 eplodn

@eplodn no, I think what you're actually looking for is https://github.com/saltstack/pepper/blob/develop/pepper/cli.py#L647 its gated off because its not compatible with tornado salt-api, but if you run cherrypy it will work as is. the pr to fix it has been sitting for a few months in salts queue

mattp- avatar Aug 02 '19 14:08 mattp-

I'm using pepper 0.7.5 and salt 2018.3.3 with cherrypy and it doesn't work, what am I missing?

eplodn avatar Aug 05 '19 09:08 eplodn

@eplodn timeouts in salt are tricky, there is no 'timeout' in the sense you are thinking for a long running job that will abort. if a minion is responding to the master polling for status, it will run forever. This PR should hypothetically do something on the client side for what you are looking for but it it is not ready for merge atm

mattp- avatar Aug 06 '19 14:08 mattp-

Howdy! :wave:

Apologies for the long delay on this integrating this code. We certainly appreciate your effort!

Pepper is getting some renewed focus and love, and we're checking in to see if you'd like to update this against the latest version of the base branch and ensure that all merge conditions are met.

If the items addressed by this contribution have already been fixed/added, are no longer an issue, or you no longer have a desire to work on this... please let us know and/or close out this PR.

If we don't hear from you within 7 days, we'll assume the code has been abandoned and close it out. If you'd like to revisit this in the future, you can always open a new PR.

Thank you, and we hope to see you active in the Salt ecosystem in the future!

nicholasmhughes avatar Apr 20 '23 19:04 nicholasmhughes