[ВОЛК] увеличение таймаута до 120 сек для корректной обработки загрузки категорий
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -6,7 +6,7 @@ After=network.target
|
||||
[Service]
|
||||
User=root
|
||||
WorkingDirectory=/opt/testbot-git
|
||||
ExecStart=/opt/testbot-git/venv/bin/gunicorn --bind 192.168.0.109:5006 --workers 4 --timeout=60 wsgi_edit:app
|
||||
ExecStart=/opt/testbot-git/venv/bin/gunicorn --bind 192.168.0.109:5006 --workers 4 --timeout=120 wsgi_edit:app
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ def load_categories():
|
||||
try:
|
||||
# Добавляем таймаут для избежания зависаний (30 секунд)
|
||||
from urllib.request import Request
|
||||
req = Request(desc_url, headers={'User-Agent': 'Mozilla/5.0 (MyApp)'})
|
||||
req = Request(desc_url, headers={'User-Agent': 'Mozilla/5.0 (Telefaust)'})
|
||||
log_message(f"request response = {req}", "DEBUG")
|
||||
safe_log_direct("run urlopen", "DEBUG")
|
||||
response = urlopen(req, timeout=30)
|
||||
|
||||
Reference in New Issue
Block a user