Structsยง
- Syncer
Config ๐
Constantsยง
- FAILURE_
COOLDOWN_ ๐SECS - MAX_
CONSECUTIVE_ ๐FAILURES - PRINT_
STILL_ ๐RUNNING_ MESSAGE_ TICKS_ THRESHOLD - SYNC_
INTERVAL_ ๐SECS
Functionsยง
- delete_
old_ ๐files - Deletes files from blob storage that are no longer associated with any public page. This includes files for deleted pages, hidden pages, and any other pages that are no longer public.
- ensure_
search_ ๐index_ exists - Ensures that the specified search index exists, creating it if necessary.
- generate_
blob_ ๐path - Generates the blob storage path for a given page.
- initialize_
blob_ ๐client - Initializes the Azure Blob Storage client.
- initialize_
configuration ๐ - initialize_
database_ ๐pool - Initializes the PostgreSQL connection pool.
- initialize_
environment ๐ - main
- sync_
pages ๐ - Synchronizes pages to the chatbot backend.
- sync_
pages_ ๐batch - Processes and synchronizes a batch of pages.