Skip to main content

create-a-background-job

Create a durable background job with explicit delivery, idempotency, retry, cancellation, and recovery behavior. Use when work should continue outside a synchronous request.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
create-a-background-job
category
code
description
Create a durable background job with explicit delivery, idempotency, retry, cancellation, and recovery behavior. Use when work should continue outside a synchronous request.
# create-a-background-job Move work off the request path without moving correctness, ownership, or evidence out of sight. ## Procedure 1. Define the job input, output, owner, business effect, deadline, ordering, and delivery guarantee. 2. Put stable record identifiers in the queue payload and retrieve sensitive details through authorized storage. 3. Make the handler idempotent and define its transaction or checkpoint boundaries. 4. Acknowledge delivery only after durable progress makes replay safe. 5. Set execution timeout, bounded exponential backoff, jitter, maximum attempts, and retry classification. 6. Add cancellation and supersession checks before each expensive or irreversible step. 7. Route exhausted or malformed work to a dead-letter path with owner, alert, and replay procedure. 8. Bound concurrency and document per-key ordering or mutual-exclusion needs. 9. Emit structured attempt, progress, outcome, latency, and queue-age signals. 10. Test duplicates, crashes, poison input, dependency outage, cancellation, deploys, and replay. 11. Reconcile source records, queue state, completed effects, and dead letters. ## Guardrails - Do not serialize credentials or full sensitive records into a queue message. - Never retry every exception indefinitely. - A successful dequeue is not evidence that the business effect completed. ## Done - The job contract and state transitions are documented - Duplicate, crash, retry, cancellation, and replay tests are verified - Source, queue, effect, and dead-letter records reconcile
GitHub에서 보기