一键导入
backend-async-tasks
Use when creating or updating Celery tasks, async job logic, or Beat schedules in the backend.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or updating Celery tasks, async job logic, or Beat schedules in the backend.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for change discipline, validation expectations, and safety checks when making repo changes.
Use when running installs, dev servers, tests, lint/format, codegen, or Docker lifecycle tasks; Taskfile is the source of truth.
Reviews SQLAlchemy code for session management, relationships, N+1 queries, and migration patterns. Use when reviewing SQLAlchemy 2.0 code, checking session lifecycle, relationship() usage, or Alembic migrations.
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
| name | backend-async-tasks |
| description | Use when creating or updating Celery tasks, async job logic, or Beat schedules in the backend. |
backend/src/backend/apps/**/tasks.py.backend/src/backend/celery_app.py.tasks.py file under the relevant app module.@app.task imported from backend.celery_app.int, None, etc.). Keep task-specific parameters
local unless they must be environment-configured.asyncio.run() to bridge async work.get_task_session() from backend.celery_app.app.conf.beat_schedule in
backend/src/backend/celery_app.py and use celery.schedules.crontab.alchemy_config engine inside a task; it is not fork-safe
for Celery workers.get_task_session() to manage DB connections safely across worker
processes.backend/src/backend/apps/**/tasks.pybackend/src/backend/celery_app.pybackend/tests/apps/users/test_tasks.py