fix: keep VK bot alive across long poll failures

This commit is contained in:
nyan404 committed 2026-10-08 14:09:20 +03:00
1 parent e33de2114a
commit 2d9aa2126c
8 files changed
+157 -15

No files matched your search

+1
View File
@@ -24,6 +24,7 @@
## Notes
- VK scheduler lives in `app/belki/vk_scheduler.py`; use `BELKI_DATABASE_URL` in production and `BELKI_HISTORY_DB` for local SQLite checks. Keep mailing disabled until an administrator explicitly enables a conversation and schedule.
- VK Long Poll and dialog durability live across `app/belki/vk_bot.py` and `app/belki/vk_scheduler.py`: keep reconnect handling around both Long Poll setup and `a_check`, and preserve the `vk_dialog_states` schema when changing dialog steps or attachments. Validate with `python -m unittest tests.test_vk_bot tests.test_vk_conversation -q`.
- The build job waits for the DinD daemon and runs `docker info` before building.
- Never commit `.env` or `.gitlab.variables.env`; the latter contains the GitLab Variable handoff and a namespace-scoped kubeconfig.
- Private image storage is the separate Kubernetes Secret `belki-image-store`, not the CI-recreated `belki-runtime`. It contains only the internal MinIO endpoints and bucket-scoped credentials; keep MinIO private and preserve the `/api/images/<id>` Belki proxy when changing upload flows.