Skip to content

Improved api function#57

Open
mossicrue wants to merge 1 commit intoRedHatSatellite:masterfrom
mossicrue:improved_api_call
Open

Improved api function#57
mossicrue wants to merge 1 commit intoRedHatSatellite:masterfrom
mossicrue:improved_api_call

Conversation

@mossicrue
Copy link
Copy Markdown
Contributor

Add a function called apicall that improve the behaviour of the API in case of errors and exceptions.
All the API errors are now reported in Standard Error output in a more verbose way.
Added the --repeat-api options that will retry an api call a certain number of time if it returns error.
Added the --repeat-api-sleep that add the possibility to increase the time waited before perform the same api call if the previous attempt failed.

Add the apicall function in order to easy handle errors and make a retry system in case of problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant