docs: record VK Callback API architecture
This commit is contained in:
1 parent
a04498d634
commit
ed9203ea77
5 files changed
+27
-15
No files matched your search
@@ -24,7 +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`.
|
||||
- VK Callback API and dialog durability live across `app/belki/vk_bot.py`, `app/belki/vk_callback.py`, and `app/belki/vk_scheduler.py`. The bot listens on callback port 8081; preserve `vk_dialog_states` and `vk_callback_events` when changing dialog steps, attachments, or event dispatch. Validate with `python -m unittest tests.test_vk_bot tests.test_vk_conversation -q`. Production uses `/api/vk/callback` on the existing public host and routes that exact path to the `belki-bot` Service.
|
||||
- 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.
|
||||
|
||||
Reference in new issue
Block a user