add autorestart rec

This commit is contained in:
poturaevpetr
2025-12-30 00:18:10 +05:00
parent 51c361f99d
commit e5081e71a3
3 changed files with 68 additions and 2 deletions
+6 -1
View File
@@ -33,4 +33,9 @@ CALLS_WEB_CLIENT_URL = os.getenv(
"http://calls_web_client:8000"
)
WEBHOOK_ENDPOINT = f"{CALLS_WEB_CLIENT_URL}/api/transcription/webhook"
WEBHOOK_API_KEY = os.getenv("WEBHOOK_API_KEY", "webhook_secret_key")
WEBHOOK_API_KEY = os.getenv("WEBHOOK_API_KEY", "webhook_secret_key")
# Auto-restore recognition on startup
ENABLE_AUTO_RESTORE = os.getenv("ENABLE_AUTO_RESTORE", "true").lower() == "true"
AUTO_RESTORE_LIMIT = int(os.getenv("AUTO_RESTORE_LIMIT", "100")) # Максимум файлов для восстановления
AUTO_RESTORE_DELAY = int(os.getenv("AUTO_RESTORE_DELAY", "5")) # Задержка перед запуском (секунды)