Skip to content

Commit

Permalink
downgrade tenacity and remove new code
Browse files Browse the repository at this point in the history
  • Loading branch information
obsd committed Jun 22, 2022
1 parent 9bc875e commit 3cdd0bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions horizon/startup/remote_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import requests
from typing import Optional

from tenacity import retry, wait, stop, retry_if_not_exception_type
# TODO: readd after we release the new version of opal (should be next week)
#from tenacity import retry, wait, stop, retry_if_not_exception_type
from tenacity import retry, wait, stop
from pydantic import ValidationError
from opal_common.logger import logger

Expand Down Expand Up @@ -50,7 +52,8 @@ class RemoteConfigFetcher:
organizations (which is not secure).
"""
DEFAULT_RETRY_CONFIG = {
'retry': retry_if_not_exception_type(InvalidPDPTokenException),
# TODO: readd after we release the new version of opal (should be next week)
# 'retry': retry_if_not_exception_type(InvalidPDPTokenException),
'wait': wait.wait_random_exponential(max=10),
'stop': stop.stop_after_attempt(10),
'reraise': True,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pydantic[email]==1.8.2
starlette==0.14.2
uvicorn[standard]
requests==2.25.0
tenacity>=8.0.1
tenacity>=6.3.1
Jinja2==3.0.3
logzio-python-handler
rook
Expand Down

0 comments on commit 3cdd0bd

Please sign in to comment.