"""One-time script: build midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2 snapshot.

Rebuilds from scratch using corrected DB data (post cross-midnight rebuild).
"""
from __future__ import annotations

import asyncio
from libs.common.logging import configure_logging, get_logger
from libs.export.canonical_snapshots import build_canonical_snapshot

SNAPSHOT_ID = "midlarge-liquid-long-v1_bucketfix_full_audit_canonical_ftb_fix_v2"

logger = get_logger(__name__)


async def main() -> None:
    configure_logging()
    logger.info("building_canonical_snapshot", snapshot_id=SNAPSHOT_ID)
    await build_canonical_snapshot(SNAPSHOT_ID, manual=True)
    logger.info("canonical_snapshot_done", snapshot_id=SNAPSHOT_ID)


if __name__ == "__main__":
    asyncio.run(main())
