sa-resume-worker / app /main.py
Avinashnalla7's picture
Drive OAuth, startup background worker, heartbeat polling
54a4bb3
Raw
History Blame Contribute Delete
356 Bytes
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())