Skip to content

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

Description

@Emilio-Bruno

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 ):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions