feat(chalice): jira timeout

This commit is contained in:
Taha Yassine Kraiem 2022-08-03 18:42:28 +02:00
parent c1ad198a65
commit 247aa530f5

View file

@ -18,7 +18,7 @@ class JiraManager:
self._config = {"JIRA_PROJECT_ID": project_id, "JIRA_URL": url, "JIRA_USERNAME": username,
"JIRA_PASSWORD": password}
try:
self._jira = JIRA(url, basic_auth=(username, password), logging=True, max_retries=1)
self._jira = JIRA(url, basic_auth=(username, password), logging=True, max_retries=1, timeout=3)
except Exception as e:
print("!!! JIRA AUTH ERROR")
print(e)