Skip to content

Commit 6957530

Browse files
authored
fix: add HTTP timeout to Yeti connector to prevent worker blocking (#3285)
Add timeout=60 to requests.post() in Yeti connector so that slow or unresponsive Yeti API does not block Celery workers indefinitely. Fixes #3256
1 parent 8badbf8 commit 6957530

File tree

1 file changed

+1
-0
lines changed
  • api_app/connectors_manager/connectors

1 file changed

+1
-0
lines changed

api_app/connectors_manager/connectors/yeti.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def run(self):
5858
headers=headers,
5959
json=payload,
6060
verify=self.verify_ssl,
61+
timeout=60,
6162
)
6263
resp.raise_for_status()
6364
except requests.RequestException as e:

0 commit comments

Comments
 (0)