increased request timeout
Browse files- app/utils/web_utils.py +2 -2
app/utils/web_utils.py
CHANGED
|
@@ -27,8 +27,8 @@ except Exception:
|
|
| 27 |
|
| 28 |
# ---- OPTIMIZED Configuration ----
|
| 29 |
MAX_WORKERS = 8 # Increased for parallelism
|
| 30 |
-
REQUEST_TIMEOUT =
|
| 31 |
-
PER_URL_TIMEOUT =
|
| 32 |
POLITENESS_DELAY = 0.1 # Reduced from 0.25
|
| 33 |
GOOGLE_NUM_DEFAULT = 10
|
| 34 |
MIN_TEXT_LENGTH = 700
|
|
|
|
| 27 |
|
| 28 |
# ---- OPTIMIZED Configuration ----
|
| 29 |
MAX_WORKERS = 8 # Increased for parallelism
|
| 30 |
+
REQUEST_TIMEOUT = 12 # Reduced from 6 - fail faster
|
| 31 |
+
PER_URL_TIMEOUT = 14 # Reduced from 10
|
| 32 |
POLITENESS_DELAY = 0.1 # Reduced from 0.25
|
| 33 |
GOOGLE_NUM_DEFAULT = 10
|
| 34 |
MIN_TEXT_LENGTH = 700
|