跳到正文
Skillpedia
API 与服务器(后端)42k · #6444

competition-queue-worker-drift

它能做什么

这个工具帮助你理解发送到队列中的任务,是如何被“工作进程”(worker,即在后台执行任务的程序)处理的。它会追踪任务从提交到最终结果的完整路径,尤其是在后台处理与预期不符的时候。

适用场景

  • ✓当你想弄清楚一个已提交处理的任务发生了什么时。
  • ✓想弄明白为什么后台进程(worker)的行为与预期不同时。
  • ✓在调查异步系统中任务失败或重试的原因时。

技能链接

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-queue-worker-drift/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-queue-worker-drift/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“追踪这个任务在队列中的处理过程,从提交一直到最终结果。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会梳理整条事件链:任务在哪里被发送、如何被存储、由谁处理(即 worker)、是否有重试,以及最终产生了什么效果。它还会把正常路径与后台路径进行对比,找出两者之间的差异。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Competition Queue Worker Drift

Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.

Use this skill when the decisive effect happens after enqueue, inside a worker, or only under async runtime state that differs from the request path.

Reply in Simplified Chinese unless the user explicitly requests English.

Quick Start

  1. Map the async chain first: enqueue point, queue payload, worker consumer, retries, and final side effect.
  2. Keep request-time state separate from worker-time state.
  3. Record queue name, message shape, worker config, retry policy, and downstream store in one chain.
  4. Compare synchronous path and async path when behavior diverges.
  5. Reproduce the smallest enqueue-to-side-effect flow that proves the decisive async drift.

Workflow

1. Map Enqueue And Worker Identity

  • Record queue names, topics, cron schedules, delayed jobs, dead-letter queues, worker processes, and consumer groups.
  • Note which config, env vars, feature flags, or credentials exist only in the worker environment.
  • Keep enqueue request, stored payload, and worker identity tied together.

2. Trace Worker-Only State And Retries

  • Show how worker runtime differs from the request path: different env, files, mounts, caches, permissions, or clocks.
  • Record retry count, backoff, dedupe keys, failure handling, dead-letter flow, and idempotency behavior.
  • Distinguish immediate request success from eventual worker success or failure.

3. Reduce To The Decisive Async Chain

  • Compress the result to the smallest sequence: enqueue -> worker runtime -> retry or branch -> resulting effect.
  • State clearly whether the decisive difference lives in payload shape, worker config, retry path, or downstream consumer.
  • If the issue is really about the file parser invoked by the worker, switch back to the tighter file-parser skill.

Read This Reference

  • Load references/queue-worker-drift.md for the queue checklist, retry checklist, and evidence packaging.

What To Preserve

  • Queue names, payloads, worker identities, retry metadata, dead-letter edges, and downstream effects
  • The exact worker-only config or state that changes behavior
  • One minimal enqueue-to-side-effect reproduction chain
常见问题

什么是“worker”?

它是在后台运行的程序,负责处理那些不需要立即完成的任务,比如处理图片或发送邮件。

“异步处理”是什么意思?

意思是任务发出后,系统不会等待结果,而是继续做其他事情。结果会稍后在后台返回。

什么是“队列”?

它是存放待处理任务的地方。可以把它想象成银行排队,任务按照到达的先后顺序依次处理。

详情

作者的原始描述

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for queues, async workers, cron jobs, delayed tasks, retry behavior, worker-only config drift, and payload-to-side-effect chains. Use when the user asks to trace a queue payload, inspect async job execution, explain worker-only behavior, follow retries or dead-letter handling, or connect an enqueued item to a later file,

repo: zhaoxuya520/reverse-skill

热度

GitHub 星标
42k
排名
#6444
许可证
MIT
更新时间
2026/9/22

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能