Module chatbot_syncer

Source

Structsยง

SyncerConfig ๐Ÿ”’

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.