armka_file_worker/api/run_server.py

15 lines
330 B
Python

"""Run the pdfworker FastAPI application with its JetStream lifespan."""
import uvicorn
from src.core.config import get_settings
def main():
settings = get_settings()
uvicorn.run("src.app:app", host=settings.server.HOST,
port=settings.server.PORT, lifespan="on")
if __name__ == "__main__":
main()