Skip to content

Commit

Permalink
set default
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Jan 3, 2025
1 parent 7d96128 commit 162c58b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fence/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def post_process(self):
"WHITE_LISTED_GOOGLE_PARENT_ORGS",
"CLIENT_CREDENTIALS_ON_DOWNLOAD_ENABLED",
"DATA_UPLOAD_BUCKET",
"DEFAULT_BACKOFF_SETTINGS_MAX_TRIES",
]
for default in defaults:
self.force_default_if_none(default, default_cfg=default_config)
Expand Down
2 changes: 1 addition & 1 deletion fence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def get_SQLAlchemyDriver(db_conn_url):
DEFAULT_BACKOFF_SETTINGS = {
"on_backoff": log_backoff_retry,
"on_giveup": log_backoff_giveup,
"max_tries": config.get("DEFAULT_BACKOFF_SETTINGS_MAX_TRIES", 3),
"max_tries": config["DEFAULT_BACKOFF_SETTINGS_MAX_TRIES"],
"giveup": exception_do_not_retry,
}

Expand Down

0 comments on commit 162c58b

Please sign in to comment.