nikhil_no_persistent / lilac /router_tasks.py
nsthorat-lilac's picture
Duplicate from lilacai/nikhil_staging
bfc0ec6
raw
history blame contribute delete
No virus
355 Bytes
"""Router for tasks."""
from fastapi import APIRouter
from .router_utils import RouteErrorHandler
from .tasks import TaskManifest, task_manager
router = APIRouter(route_class=RouteErrorHandler)
@router.get('/')
async def get_task_manifest() -> TaskManifest:
"""Get the tasks, both completed and pending."""
return await task_manager().manifest()