Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)42k · #6444

competition-queue-worker-drift

Skill này làm gì

Công cụ này giúp hiểu cách một tác vụ gửi vào hàng đợi được xử lý bởi “worker” (chương trình chạy tác vụ nền). Nó theo dõi toàn bộ đường đi từ lúc gửi đến kết quả cuối cùng, đặc biệt khi xử lý nền khác với kỳ vọng.

Khi nào nên dùng

  • ✓Khi bạn muốn biết điều gì đã xảy ra với một tác vụ đã được gửi đi xử lý.
  • ✓Để hiểu vì sao một worker chạy nền hoạt động khác với mong đợi.
  • ✓Khi điều tra lỗi hoặc việc thử lại của các tác vụ trong hệ thống bất đồng bộ.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-queue-worker-drift/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Theo dõi quá trình xử lý tác vụ này trong hàng đợi, từ lúc gửi đến kết quả cuối cùng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ lập bản đồ toàn bộ chuỗi sự kiện: tác vụ được gửi đi đâu, được lưu thế nào, ai đã xử lý (worker), có lần thử lại nào không và hiệu ứng cuối cùng là gì. Nó so sánh đường xử lý bình thường với đường xử lý nền để tìm ra khác biệt.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

“Worker” là gì?

Đó là chương trình chạy ngầm để thực hiện các tác vụ không cần làm ngay lập tức, như xử lý ảnh hoặc gửi email.

“Xử lý bất đồng bộ” nghĩa là gì?

Nghĩa là một tác vụ được gửi đi, và hệ thống tiếp tục làm việc khác mà không chờ kết quả ngay. Kết quả sẽ đến sau, ở chế độ nền.

“Queue” (hàng đợi) là gì?

Đó là nơi các tác vụ được xếp chờ để xử lý. Hãy hình dung như hàng người chờ ở ngân hàng, các tác vụ được xử lý theo thứ tự đến.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
42k
Vị trí xếp hạng
#6444
Giấy phép
MIT
Cập nhật
22/9/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự