modal-web-scheduling-knowledge
Installation
SKILL.md
Modal Web and Scheduling Knowledge
Use this skill for Modal web endpoints and scheduled jobs. For GPU compute, autoscaling, or storage primitives, use the focused Modal compute or storage skills.
Endpoint routing
- Use
@modal.fastapi_endpoint()for simple function-backed HTTP APIs. - Use
@modal.asgi_app()for full FastAPI/Starlette apps, WebSockets, middleware, and routing. - Use
@modal.wsgi_app()for WSGI frameworks. - Add
@modal.concurrentfor high-throughput endpoints that can safely handle concurrent inputs per container. - Test locally with
modal serve, then deploy withmodal deploy.
Scheduling routing
- Use
modal.Cron(...)for calendar schedules and explicit timezones. - Use
modal.Period(...)for interval-based execution. - Schedules run from deployed apps;
modal runis only for manual testing. - Add retries, timeouts, and idempotency for scheduled ETL or recurring jobs.