# ruff: noqa: E402 """Refresh advisory metrics and their data-quality gates once.""" from __future__ import annotations import asyncio import sys from pathlib import Path ROOT = Path(__file__).resolve().parents[1] sys.path.insert(0, str(ROOT)) from app.worker.product_metric_refresh_worker import ProductMetricRefreshWorker async def main() -> None: refreshed = await ProductMetricRefreshWorker().refresh_once() print(f"refreshed metrics and quality snapshots: {refreshed}") if __name__ == "__main__": asyncio.run(main())