·queues
</>

queues

null-shot/cloudflare-skills

用于可靠后台处理的异步消息队列。在卸载后台任务、批处理消息、使用死信队列实现重试逻辑、限制上游 API 速率或将生产者与消费者解耦时加载。

4安装·0热度·@null-shot

安装

$npx skills add https://github.com/null-shot/cloudflare-skills --skill queues

SKILL.md

Build reliable asynchronous message processing on Cloudflare Workers using Queues for background tasks, batch operations, and retry handling.

| Send single message | env.QUEUEBINDING.send(payload) | | Send batch | env.QUEUEBINDING.sendBatch([msg1, msg2]) | | Define consumer | async queue(batch: MessageBatch, env: Env) { ... } | | Access message body | batch.messages.map(msg => msg.body) | | Acknowledge message | Messages auto-ack unless handler throws |

| Retry message | throw new Error() in queue handler | | Get batch size | batch.messages.length |

用于可靠后台处理的异步消息队列。在卸载后台任务、批处理消息、使用死信队列实现重试逻辑、限制上游 API 速率或将生产者与消费者解耦时加载。 来源:null-shot/cloudflare-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/null-shot/cloudflare-skills --skill queues
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 queues?

用于可靠后台处理的异步消息队列。在卸载后台任务、批处理消息、使用死信队列实现重试逻辑、限制上游 API 速率或将生产者与消费者解耦时加载。 来源:null-shot/cloudflare-skills。

如何安装 queues?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/null-shot/cloudflare-skills --skill queues 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/null-shot/cloudflare-skills