Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add break to prevent log flooding and API abuse #42

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

blancoramiro
Copy link

When running into connectivity or authentication problems, getRunnersOrganizationFromGithub gets stucked in a loop flooding the stdout with logs and hitting non-stop the Github API.
With a break, if it runs into an error of any sort, it will continue with the next org. If errors occurs with next orgs, it will only fail once and finally after checking all orgs it will pause the specified refresh value.

When running into connectivity or authentication problems, getRunnersOrganizationFromGithub gets stucked in a loop flooding the stdout with logs and hitting non-stop the Github API.
With a break, if it runs into an error of any sort, it will continue with the next org. If errors occurs with next orgs, it will only fail once and finally after checking all orgs it will pause the specified refresh value.
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