Spaces:
Sleeping
Sleeping
File size: 356 Bytes
9d416ac 582aaa1 54a4bb3 582aaa1 54a4bb3 582aaa1 810e18a 54a4bb3 9d416ac 54a4bb3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import asyncio
from fastapi import FastAPI
from app.background import worker_loop
from app.health import router as health_router
app = FastAPI()
app.include_router(health_router)
@app.get("/")
def root():
return {"service": "sa-resume-worker", "status": "running"}
@app.on_event("startup")
async def startup():
asyncio.create_task(worker_loop()) |