Backport Test 4 (#2968)

This commit is contained in:
Yuhong Sun 2024-10-27 19:41:04 -07:00 committed by GitHub
parent 20e8c2287a
commit 3d9cc769d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,10 +20,13 @@ from danswer.connectors.models import Document
from danswer.connectors.models import Section
from danswer.utils.logger import setup_logger
logger = setup_logger()
# Fairly generous retry because it's not understood why occasionally GraphQL requests fail even with timeout > 1 min
SLAB_GRAPHQL_MAX_TRIES = 10
SLAB_API_URL = "https://api.slab.com/v1/graphql"
logger = setup_logger()
def run_graphql_request(