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

max_retries and max_fails, from config file, are not used #19

Open
Emilio-Bruno opened this issue Oct 12, 2021 · 0 comments
Open

max_retries and max_fails, from config file, are not used #19

Emilio-Bruno opened this issue Oct 12, 2021 · 0 comments

Comments

@Emilio-Bruno
Copy link

If you try to configure the variables above from config file, nothing will change. The problems are:

1241 while was_cloning_fail and num_of_tries <= retry_limit:
...
1243 printstyled( 'RETRYING: Try #{} of {} to clone repo.'.format( (num_of_tries+1), retry_limit ), 'magenta' )
Should be:
1241 while was_cloning_fail and num_of_tries <= BACKUP_MAX_RETRIES:
...
1243 printstyled( 'RETRYING: Try #{} of {} to clone repo.'.format( (num_of_tries), BACKUP_MAX_RETRIES ), 'magenta' )

1286 if failed_repos > 0 and failed_repos <= warning_limit:
1288 if failed_repos > warning_limit and failed_repos <= len( repos ):
Should be:
1286 if failed_repos > 0 and failed_repos <= BACKUP_MAX_FAILS:
1288 if failed_repos > BACKUP_MAX_FAILS and failed_repos <= len( repos ):

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

No branches or pull requests

1 participant