"""
Serve sync-node and sync-offer flows.

Uses prefect.serve() - code is already in container, no git clone needed.
"""
from prefect import serve

from sync_node import sync_node
from sync_offer import sync_offer


if __name__ == "__main__":
    # Create deployments
    node_deployment = sync_node.to_deployment(
        name="sync-node-deployment",
        tags=["sync", "node", "maps"],
    )
    offer_deployment = sync_offer.to_deployment(
        name="sync-offer-deployment",
        tags=["sync", "offer", "maps"],
    )

    # Serve both flows with concurrency limit
    serve(node_deployment, offer_deployment, limit=4)
