Skip to content

Commit 2912a8f

Browse files
committed
chore: able to set other config
1 parent d60bfcb commit 2912a8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scraper/src/typesense_helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def __init__(self, alias_name, collection_name_tmp, custom_settings):
2626
],
2727
'connection_timeout_seconds': int(os.environ.get('TYPESENSE_CONNECTION_TIMEOUT_SECONDS', 30 * 60)),
2828
'retry_interval_seconds': int(os.environ.get('TYPESENSE_RETRY_INTERVAL_SECONDS', 1)),
29+
'num_retries': int(os.environ.get('TYPESENSE_NUM_RETRIES', 3)),
30+
'healthcheck_interval_seconds': int(os.environ.get('TYPESENSE_HEALTHCHECK_INTERVAL_SECONDS', 60)),
2931
'verify': os.environ.get('TYPESENSE_VERIFY', 'True').lower() == 'true',
3032
}
3133
)

0 commit comments

Comments
 (0)