likkisai59/spond/fastapi-background-tasks
Claude Code and agent skill by likkisai59/spond
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
FastAPI BackgroundTasks for post-response operations like email notifications, audit logging, and fire-and-forget tasks
Install
npx vskill@latest install likkisai59/spond/fastapi-background-tasksSKILL.md
The same SKILL.md was published earlier as likkisai59/spond/fastapi-background-tasks.
FastAPI Background Tasks Skill
Basic Usage
Key Concepts
Task Functions
- Can be
async defor regulardef- FastAPI handles both - Run AFTER the response is returned to the client
- Receive parameters passed via
add_task()
Adding Tasks
Best Practices
1. Keep Tasks Simple
2. Handle Errors Gracefully
3. Do Not Block in Tasks
4. Pass Data, Not Objects
Comparison with Alternatives
| Feature | BackgroundTasks | Celery | APScheduler | |
|---|---|---|---|---|
| Setup complexity | None | High | Medium | |
| External dependencies | None | Redis/RabbitMQ | Database | |
| Distributed | No | Yes | No | |
| Scheduled jobs | No | Yes | Yes | |
| Task persistence | No | Yes | Varies | |
| Best for | Simple post-request tasks | Heavy workloads | Scheduled jobs |
BackgroundTasks vs asyncio.create_task()
Technical Details
BackgroundTaskscomes fromstarlette.background- Tasks run in the same process (share memory/variables)
- If the server crashes, pending tasks are lost
- For critical tasks, use a message queue (Celery) instead
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbackend/skills/fastapi-background-tasks/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/likkisai59/spond/fastapi-background-tasks)