Skip to content

Commit

Permalink
fix: adjust backoff factor
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnhaatj committed May 17, 2022
1 parent 261b80f commit fc77ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas/schemas_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, base_url):

@backoff.on_exception(backoff.expo,
(requests.exceptions.RequestException, SchemaRegistryError, ),
factor=10,
factor=5,
max_tries=5)
def fetch_all_schemas(self):
logging.info(f"fetching schema registry")
Expand Down
2 changes: 1 addition & 1 deletion svc/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@backoff.on_exception(backoff.expo,
(Exception,),
factor=10,
factor=5,
max_tries=5)
def configure_mysql_connectors(conf, hostname='localhost', port='8083'):
logging.info("configuring MySQL Kafka connectors")
Expand Down

0 comments on commit fc77ab9

Please sign in to comment.