[ВОЛК] увеличение таймаута до 120 сек для корректной обработки загрузки категорий
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-12-21 14:34:03 +03:00
parent 35c8a00822
commit e095fc35bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ After=network.target
[Service] [Service]
User=root User=root
WorkingDirectory=/opt/testbot-git 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 Restart=always
[Install] [Install]
+1 -1
View File
@@ -178,7 +178,7 @@ def load_categories():
try: try:
# Добавляем таймаут для избежания зависаний (30 секунд) # Добавляем таймаут для избежания зависаний (30 секунд)
from urllib.request import Request 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") log_message(f"request response = {req}", "DEBUG")
safe_log_direct("run urlopen", "DEBUG") safe_log_direct("run urlopen", "DEBUG")
response = urlopen(req, timeout=30) response = urlopen(req, timeout=30)