# Cc Async Task Pattern

> 当 API/任务可能执行超过 10 秒（批量数据处理、远程 API 批量调用、全表扫描、跨租户聚合）时触发。防止同步接口被网关 30s 超时切断、用户重复点击触发并发、状态缓存内存泄漏等问题。提…

当 API/任务可能执行超过 10 秒（批量数据处理、远程 API 批量调用、全表扫描、跨租户聚合）时触发。防止同步接口被网关 30s 超时切断、用户重复点击触发并发、状态缓存内存泄漏等问题。提供异步任务状态机标准模板。

- Page: https://ss33.ai/skills/doccker/cc-async-task-pattern-48077998917
- Publisher: doccker
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [APIs & backend](https://ss33.ai/skills/category/software-development-t44z8z/apis-and-backend-t0x840)
- Source: https://github.com/doccker/cc-use-exp/blob/64470cb5c2b0c86163147d832706f340cf9b1eef/.codex/skills/cc-async-task-pattern/SKILL.md

## Skill

This skill's licence does not allow redistribution, so the store does not serve its text. Get it from the author: https://github.com/doccker/cc-use-exp/blob/64470cb5c2b0c86163147d832706f340cf9b1eef/.codex/skills/cc-async-task-pattern/SKILL.md
