Skip to content

Commit

Permalink
Merge pull request #46 from PADAS/update-requirements-and-portal-time…
Browse files Browse the repository at this point in the history
…out-management

Requirements update and new portal configurable timeout
  • Loading branch information
vgarcia13 authored Dec 5, 2024
2 parents 5283242 + c5f1929 commit a60c37a
Show file tree
Hide file tree
Showing 4 changed files with 519 additions and 423 deletions.
1 change: 1 addition & 0 deletions cdip_connector/core/cdip_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

LOG_LEVEL = env.log_level("LOG_LEVEL", "INFO")
DEFAULT_LOOKBACK_DAYS = env.int("DEFAULT_LOOKBACK_DAYS", 30)
DEFAULT_DATA_TIMEOUT_SECONDS = env.int("DEFAULT_DATA_TIMEOUT_SECONDS", 60)

RUNNING_IN_K8S = bool("KUBERNETES_PORT" in os.environ)

Expand Down
2 changes: 1 addition & 1 deletion cdip_connector/core/connector_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self):

self.logger = logging.getLogger(self.__class__.__name__)

self.portal = PortalApi()
self.portal = PortalApi(data_timeout=cdip_settings.DEFAULT_DATA_TIMEOUT_SECONDS)

self.load_batch_size = cdip_settings.INTEGRATION_LOAD_BATCH_SIZE
self.concurrency = cdip_settings.INTEGRATION_CONCURRENCY
Expand Down
Loading

0 comments on commit a60c37a

Please sign in to comment.