from __future__ import annotations

import asyncio

from ai_orchestrator.config.settings import Settings
from ai_orchestrator.services.task_service import build_task_worker


async def _main() -> None:
    settings = Settings()
    worker = build_task_worker(settings)
    await worker.run_forever()


def main() -> None:
    asyncio.run(_main())


if __name__ == "__main__":
    main()
